Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00122/0.00122, allocations: 102.5 kB / 17.73 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 191 kB / 18.66 MB, free: 4.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.303/1.303, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00138/0.00138, allocations: 51.92 kB / 328 MB, free: 3.801 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08577/0.08716, allocations: 46.62 MB / 374.7 MB, free: 5.07 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.2185/0.3057, allocations: 15.12 MB / 389.8 MB, free: 4.484 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01139/0.3171, allocations: 5.118 MB / 394.9 MB, free: 1.023 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003621/0.3209, allocations: 83.25 kB / 395 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003268/0.3242, allocations: 1.058 MB / 396 MB, free: 448 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004523/0.3287, allocations: 1.252 MB / 397.3 MB, free: 15.61 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002329/0.3311, allocations: 0.9003 MB / 398.2 MB, free: 15.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.004662/0.3357, allocations: 3.629 MB / 401.8 MB, free: 13.16 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003686/0.3394, allocations: 3.259 MB / 405.1 MB, free: 11.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002905/0.3424, allocations: 1.724 MB / 406.8 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003116/0.3455, allocations: 2.055 MB / 408.9 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007745/0.3463, allocations: 478.9 kB / 409.3 MB, free: 9.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001608/0.3479, allocations: 0.6768 MB / 410 MB, free: 9.797 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001048/0.3489, allocations: 1.144 MB / 411.1 MB, free: 9.004 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001963/0.3509, allocations: 2.039 MB / 413.2 MB, free: 7.508 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005919/0.3568, allocations: 6.25 MB / 419.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3569, allocations: 0 / 419.4 MB, free: 2.801 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.043e-06/0.3569, allocations: 4 kB / 419.4 MB, free: 2.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.000112/0.357, allocations: 1.125 kB / 419.4 MB, free: 2.797 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.009326/0.3663, allocations: 4.243 MB / 423.7 MB, free: 14.81 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.942e-05/0.3664, allocations: 8.031 kB / 423.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000519/0.3669, allocations: 447.3 kB / 424.1 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002618/0.3695, allocations: 0.6173 MB / 424.7 MB, free: 13.73 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003711/0.3733, allocations: 2.128 MB / 426.9 MB, free: 11.55 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001684/0.3734, allocations: 242.8 kB / 427.1 MB, free: 11.31 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004269/0.3739, allocations: 311.8 kB / 427.4 MB, free: 11.01 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00641/0.3803, allocations: 4.047 MB / 431.5 MB, free: 6.898 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.336e-05/0.3804, allocations: 11.94 kB / 431.5 MB, free: 6.887 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002758/0.3807, allocations: 128 kB / 431.6 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001398/0.3808, allocations: 142.2 kB / 431.7 MB, free: 6.621 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005186/0.386, allocations: 3.374 MB / 435.1 MB, free: 3.238 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01857/0.4046, allocations: 13.18 MB / 448.3 MB, free: 5.613 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.004063/0.4087, allocations: 3.958 MB / 452.3 MB, free: 1.152 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001519/0.4102, allocations: 0.9877 MB / 453.2 MB, free: 172 kB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.004663/0.4149, allocations: 2.646 MB / 455.9 MB, free: 13.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.572e-05/0.4149, allocations: 47.56 kB / 455.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of pre-optimization done (n=108): time 2.235e-06/0.415, allocations: 0 / 455.9 MB, free: 13.38 MB / 382.1 MB Notification: Performance of matching and sorting (n=142): time 0.01167/0.4266, allocations: 5.997 MB / 461.9 MB, free: 7.281 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.013e-05/0.4267, allocations: 68.7 kB / 462 MB, free: 7.199 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002856/0.4296, allocations: 1.889 MB / 463.9 MB, free: 5.266 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 8.672e-05/0.4297, allocations: 53.7 kB / 463.9 MB, free: 5.207 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001085/0.4308, allocations: 1.505 MB / 465.4 MB, free: 3.684 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003932/0.4312, allocations: 485 kB / 465.9 MB, free: 3.203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005118/0.4317, allocations: 335.2 kB / 466.2 MB, free: 2.867 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001369/0.4318, allocations: 301.1 kB / 466.5 MB, free: 2.57 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001253/0.4331, allocations: 0.7691 MB / 467.3 MB, free: 1.801 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.4348, allocations: 1.379 MB / 468.7 MB, free: 156 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003151/0.4379, allocations: 2.316 MB / 471 MB, free: 13.57 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.403e-05/0.438, allocations: 8 kB / 471 MB, free: 13.56 MB / 398.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.004466/0.4424, allocations: 2.473 MB / 473.5 MB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.573e-05/0.4425, allocations: 12 kB / 473.5 MB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001036/0.4426, allocations: 20 kB / 473.5 MB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004507/0.4431, allocations: 127 kB / 473.6 MB, free: 10.91 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001829/0.4449, allocations: 491.2 kB / 474.1 MB, free: 10.43 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001399/0.4463, allocations: 1.406 MB / 475.5 MB, free: 8.879 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001875/0.4482, allocations: 112 kB / 475.6 MB, free: 8.77 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000199/0.4484, allocations: 87.98 kB / 475.7 MB, free: 8.684 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (232): * Single equations (assignments): 229 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002074/0.4505, allocations: 0.9889 MB / 476.7 MB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005875/0.4511, allocations: 201.5 kB / 476.9 MB, free: 7.484 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003904/0.455, allocations: 1.965 MB / 478.9 MB, free: 5.5 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.565e-05/0.4551, allocations: 16 kB / 478.9 MB, free: 5.484 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.214e-06/0.4551, allocations: 7.938 kB / 478.9 MB, free: 5.477 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.525e-05/0.4551, allocations: 7.969 kB / 478.9 MB, free: 5.469 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009988/0.4651, allocations: 4.979 MB / 483.9 MB, free: 388 kB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.538e-06/0.4651, allocations: 7.938 kB / 483.9 MB, free: 380 kB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001406/0.4665, allocations: 315.8 kB / 484.2 MB, free: 64 kB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003566/0.4669, allocations: 98.52 kB / 484.3 MB, free: 15.96 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001131/0.467, allocations: 24 kB / 484.3 MB, free: 15.93 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001058/0.4681, allocations: 1.378 MB / 485.7 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.4681, allocations: 7.938 kB / 485.7 MB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004775/0.4729, allocations: 3.086 MB / 488.8 MB, free: 11.26 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00133/0.4743, allocations: 458.4 kB / 489.2 MB, free: 10.79 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005679/0.4748, allocations: 24 kB / 489.3 MB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001314/0.4762, allocations: 79.91 kB / 489.3 MB, free: 10.69 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.4764, allocations: 101.1 kB / 489.4 MB, free: 10.59 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.064e-05/0.4765, allocations: 32 kB / 489.5 MB, free: 10.56 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002632/0.4791, allocations: 1.285 MB / 490.8 MB, free: 9.254 MB / 414.1 MB Notification: Performance of sort global known variables: time 3.6e-07/0.4791, allocations: 0 / 490.8 MB, free: 9.254 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.002251/0.4814, allocations: 0.5352 MB / 491.3 MB, free: 8.719 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (141): * Single equations (assignments): 138 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005185/0.4866, allocations: 3.691 MB / 495 MB, free: 4.961 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003574/0.4902, allocations: 2.224 MB / 497.2 MB, free: 2.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.608e-06/0.4902, allocations: 448 / 497.2 MB, free: 2.684 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001609/0.4918, allocations: 1.181 MB / 498.4 MB, free: 1.449 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00267/0.4945, allocations: 0.5149 MB / 498.9 MB, free: 0.9336 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03281/0.5273, allocations: 19.94 MB / 0.5067 GB, free: 12.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002655/0.53, allocations: 2.255 MB / 0.5089 GB, free: 9.91 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001833/0.5319, allocations: 0.5092 MB / 0.5094 GB, free: 9.398 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001731/0.5336, allocations: 1.179 MB / 0.5105 GB, free: 8.223 MB / 446.1 MB Notification: Performance of SimCode: time 1.302e-06/0.5336, allocations: 0 / 0.5105 GB, free: 8.223 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2632/0.7968, allocations: 49.9 MB / 0.5593 GB, free: 155.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.35/14.14, allocations: 11.7 kB / 0.5593 GB, free: 155.4 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_CurrentSource.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches