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.001242/0.001242, allocations: 109 kB / 17.15 MB, free: 6.328 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.001521/0.001521, allocations: 198 kB / 18.07 MB, free: 5.434 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.454/1.454, allocations: 205.1 MB / 223.9 MB, free: 12.48 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.001294/0.001294, allocations: 47.92 kB / 280.1 MB, free: 3.508 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1145/0.1158, allocations: 46.63 MB / 326.7 MB, free: 4.809 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_CurrentSource): time 0.01726/0.1331, allocations: 14.94 MB / 341.6 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01055/0.1437, allocations: 5.055 MB / 346.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003167/0.1469, allocations: 83.62 kB / 346.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003682/0.1507, allocations: 0.9249 MB / 347.7 MB, free: 15.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004905/0.1556, allocations: 1.139 MB / 348.8 MB, free: 14.56 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002979/0.1586, allocations: 0.8148 MB / 349.7 MB, free: 13.75 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.006033/0.1646, allocations: 3.748 MB / 353.4 MB, free: 9.98 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005083/0.1698, allocations: 2.731 MB / 356.1 MB, free: 7.184 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003178/0.173, allocations: 1.432 MB / 357.6 MB, free: 5.746 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004075/0.1771, allocations: 1.922 MB / 359.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001342/0.1784, allocations: 288 kB / 359.8 MB, free: 3.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002547/0.181, allocations: 0.5075 MB / 360.3 MB, free: 3.027 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001684/0.1827, allocations: 0.95 MB / 361.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003667/0.1864, allocations: 1.835 MB / 363.1 MB, free: 236 kB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007095/0.1935, allocations: 6.048 MB / 369.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.552e-06/0.1935, allocations: 4 kB / 369.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.687e-06/0.1935, allocations: 0 / 369.1 MB, free: 10.16 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0001468/0.1937, allocations: 3.938 kB / 369.1 MB, free: 10.16 MB / 318.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.009714/0.2034, allocations: 4.234 MB / 373.4 MB, free: 5.848 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.515e-05/0.2035, allocations: 8.031 kB / 373.4 MB, free: 5.84 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005905/0.2041, allocations: 447.3 kB / 373.8 MB, free: 5.391 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002741/0.2068, allocations: 0.625 MB / 374.4 MB, free: 4.762 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003406/0.2102, allocations: 2.093 MB / 376.5 MB, free: 2.613 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001899/0.2104, allocations: 246.5 kB / 376.8 MB, free: 2.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003939/0.2108, allocations: 311.9 kB / 377.1 MB, free: 2.066 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1726/0.3835, allocations: 4.038 MB / 381.1 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.064e-05/0.3836, allocations: 3.75 kB / 381.1 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003284/0.3839, allocations: 126.5 kB / 381.2 MB, free: 48.38 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002404/0.3842, allocations: 153.5 kB / 381.4 MB, free: 48.37 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006112/0.3903, allocations: 3.374 MB / 384.8 MB, free: 47.23 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01822/0.4085, allocations: 13.33 MB / 398.1 MB, free: 38.71 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003312/0.4119, allocations: 3.961 MB / 402 MB, free: 35.06 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001239/0.4131, allocations: 1.002 MB / 403 MB, free: 34.58 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.003409/0.4166, allocations: 2.661 MB / 405.7 MB, free: 32.59 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.085e-05/0.4166, allocations: 47.47 kB / 405.8 MB, free: 32.53 MB / 318.1 MB Notification: Performance of pre-optimization done (n=108): time 2.645e-06/0.4166, allocations: 0 / 405.8 MB, free: 32.53 MB / 318.1 MB Notification: Performance of matching and sorting (n=142): time 0.009346/0.426, allocations: 5.99 MB / 411.7 MB, free: 28.57 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.827e-05/0.426, allocations: 68.72 kB / 411.8 MB, free: 28.5 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001997/0.428, allocations: 1.885 MB / 413.7 MB, free: 26.57 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.446e-05/0.4281, allocations: 49.7 kB / 413.7 MB, free: 26.51 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005973/0.4287, allocations: 1.504 MB / 415.3 MB, free: 25 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002586/0.429, allocations: 492.1 kB / 415.7 MB, free: 24.52 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003939/0.4294, allocations: 339.2 kB / 416.1 MB, free: 24.18 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.824e-05/0.4294, allocations: 305.1 kB / 416.4 MB, free: 23.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009389/0.4304, allocations: 0.7698 MB / 417.1 MB, free: 23.11 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001144/0.4315, allocations: 1.383 MB / 418.5 MB, free: 21.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002151/0.4337, allocations: 2.309 MB / 420.8 MB, free: 18.89 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.424e-06/0.4337, allocations: 4 kB / 420.8 MB, free: 18.88 MB / 318.1 MB Notification: Performance of matching and sorting (n=235) (initialization): time 0.002928/0.4366, allocations: 2.47 MB / 423.3 MB, free: 16.39 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.346e-05/0.4367, allocations: 15.94 kB / 423.3 MB, free: 16.38 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.69e-05/0.4367, allocations: 20.98 kB / 423.3 MB, free: 16.36 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003022/0.437, allocations: 122.9 kB / 423.5 MB, free: 16.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001529/0.4385, allocations: 495.2 kB / 423.9 MB, free: 15.75 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006826/0.4392, allocations: 1.311 MB / 425.2 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001127/0.4404, allocations: 115.7 kB / 425.4 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001009/0.4405, allocations: 83.98 kB / 425.4 MB, free: 14.11 MB / 318.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.001241/0.4417, allocations: 0.9852 MB / 426.4 MB, free: 13.11 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.442, allocations: 197.6 kB / 426.6 MB, free: 12.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002512/0.4445, allocations: 1.969 MB / 428.6 MB, free: 10.93 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.895e-06/0.4445, allocations: 18.41 kB / 428.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.298e-06/0.4445, allocations: 0 / 428.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.918e-06/0.4445, allocations: 7.969 kB / 428.6 MB, free: 10.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005615/0.4501, allocations: 4.986 MB / 433.6 MB, free: 5.848 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.092e-06/0.4502, allocations: 4 kB / 433.6 MB, free: 5.844 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001198/0.4514, allocations: 319.8 kB / 433.9 MB, free: 5.531 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002556/0.4516, allocations: 94.52 kB / 434 MB, free: 5.43 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.242e-05/0.4517, allocations: 27.94 kB / 434 MB, free: 5.402 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006219/0.4523, allocations: 1.269 MB / 435.3 MB, free: 3.996 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.977e-06/0.4524, allocations: 11.92 kB / 435.3 MB, free: 3.984 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003768/0.4561, allocations: 3.082 MB / 438.4 MB, free: 0.8477 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007842/0.4569, allocations: 458.3 kB / 438.8 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003359/0.4573, allocations: 27.98 kB / 438.9 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009837/0.4583, allocations: 79.91 kB / 439 MB, free: 280 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001504/0.4584, allocations: 93.19 kB / 439 MB, free: 184 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.386e-05/0.4585, allocations: 40 kB / 439.1 MB, free: 144 kB / 318.1 MB Notification: Performance of sorting global known variables: time 0.002141/0.4606, allocations: 1.285 MB / 440.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.41e-07/0.4607, allocations: 5.266 kB / 440.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001906/0.4626, allocations: 0.5355 MB / 440.9 MB, free: 14.3 MB / 334.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.004899/0.4675, allocations: 3.698 MB / 444.6 MB, free: 10.54 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.00345/0.4709, allocations: 2.209 MB / 446.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.471, allocations: 0 / 446.8 MB, free: 8.281 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001518/0.4725, allocations: 1.181 MB / 448 MB, free: 7.051 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002568/0.4751, allocations: 484.5 kB / 448.5 MB, free: 6.578 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04461/0.5197, allocations: 23.62 MB / 472.1 MB, free: 13.03 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003166/0.5229, allocations: 2.263 MB / 474.4 MB, free: 10.73 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.002092/0.525, allocations: 0.5132 MB / 474.9 MB, free: 10.22 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001878/0.5269, allocations: 1.183 MB / 476 MB, free: 9.035 MB / 366.1 MB Notification: Performance of SimCode: time 1.372e-06/0.5269, allocations: 0 / 476 MB, free: 9.035 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.101/0.6279, allocations: 47.3 MB / 0.5111 GB, free: 9.621 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.6282, allocations: 252.2 kB / 0.5113 GB, free: 9.367 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.782/3.41, allocations: 7.906 kB / 0.5113 GB, free: 9.359 MB / 414.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","../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