Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.Generic.Test.GeneratorTest,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest",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.001557/0.001557, allocations: 109.9 kB / 17.06 MB, free: 5.969 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.001719/0.001719, allocations: 200 kB / 18.01 MB, free: 5.055 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.379/1.379, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1893/0.1893, allocations: 38.04 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001419/0.001419, allocations: 63.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3555/0.3569, allocations: 58.05 MB / 0.5036 GB, free: 7.484 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.00441/0.3614, allocations: 3.312 MB / 0.5068 GB, free: 5.188 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00169/0.3631, allocations: 1.225 MB / 0.508 GB, free: 4.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001456/0.3632, allocations: 9.656 kB / 0.508 GB, free: 4.324 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006473/0.3639, allocations: 154.8 kB / 0.5082 GB, free: 4.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004287/0.3643, allocations: 187.2 kB / 0.5084 GB, free: 4.121 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003282/0.3647, allocations: 133 kB / 0.5085 GB, free: 4.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000358/0.365, allocations: 281.2 kB / 0.5088 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002799/0.3653, allocations: 124.4 kB / 0.5089 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002099/0.3655, allocations: 127.4 kB / 0.509 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001893/0.3657, allocations: 110.4 kB / 0.5091 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.535e-05/0.3658, allocations: 14.06 kB / 0.5091 GB, free: 3.77 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003935/0.3662, allocations: 228.3 kB / 0.5093 GB, free: 3.68 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.927e-05/0.3663, allocations: 57.62 kB / 0.5094 GB, free: 3.656 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.774e-05/0.3664, allocations: 106.6 kB / 0.5095 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.3668, allocations: 282.8 kB / 0.5098 GB, free: 3.488 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.3668, allocations: 1.188 kB / 0.5098 GB, free: 3.488 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3668, allocations: 0 / 0.5098 GB, free: 3.488 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.993e-06/0.3668, allocations: 0 / 0.5098 GB, free: 3.488 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 44 * Number of variables: 44 Notification: Performance of Generate backend data structure: time 0.0005832/0.3674, allocations: 0.5028 MB / 0.5103 GB, free: 3.027 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.023e-05/0.3675, allocations: 9.469 kB / 0.5103 GB, free: 3.027 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.934e-05/0.3675, allocations: 57.89 kB / 0.5103 GB, free: 2.973 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006654/0.3682, allocations: 84.97 kB / 0.5104 GB, free: 2.949 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003236/0.3685, allocations: 260 kB / 0.5107 GB, free: 2.715 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.519e-05/0.3686, allocations: 12.14 kB / 0.5107 GB, free: 2.711 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.3686, allocations: 14.78 kB / 0.5107 GB, free: 2.707 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004282/0.369, allocations: 278.9 kB / 0.511 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.053e-05/0.3691, allocations: 1.75 kB / 0.511 GB, free: 2.543 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.191e-05/0.3691, allocations: 6.281 kB / 0.511 GB, free: 2.539 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.109e-05/0.3691, allocations: 16.14 kB / 0.511 GB, free: 2.535 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003534/0.3695, allocations: 223.7 kB / 0.5112 GB, free: 2.461 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001428/0.3709, allocations: 1.203 MB / 0.5124 GB, free: 1.484 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002074/0.3712, allocations: 135.2 kB / 0.5125 GB, free: 1.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.907e-05/0.3712, allocations: 47.03 kB / 0.5125 GB, free: 1.375 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.147e-05/0.3713, allocations: 10.05 kB / 0.5125 GB, free: 1.371 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.893e-05/0.3713, allocations: 36.62 kB / 0.5126 GB, free: 1.328 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.644e-06/0.3713, allocations: 0 / 0.5126 GB, free: 1.328 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003368/0.3716, allocations: 166.3 kB / 0.5127 GB, free: 1.246 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.59e-05/0.3717, allocations: 78.97 kB / 0.5128 GB, free: 1.152 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001762/0.3719, allocations: 209.4 kB / 0.513 GB, free: 1.016 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.08e-05/0.3719, allocations: 26.95 kB / 0.513 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.965e-05/0.3719, allocations: 155 kB / 0.5132 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.352e-05/0.372, allocations: 45.17 kB / 0.5132 GB, free: 0.8125 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.431e-05/0.3721, allocations: 39.03 kB / 0.5133 GB, free: 0.7852 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.366e-05/0.3721, allocations: 333.5 kB / 0.5136 GB, free: 472 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.964e-05/0.3722, allocations: 49.33 kB / 0.5136 GB, free: 452 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.3723, allocations: 122 kB / 0.5137 GB, free: 336 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001884/0.3725, allocations: 181.6 kB / 0.5139 GB, free: 184 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3725, allocations: 0 / 0.5139 GB, free: 184 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002859/0.3728, allocations: 209.2 kB / 0.5141 GB, free: 80 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.691e-05/0.3728, allocations: 9.469 kB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.363e-06/0.3728, allocations: 3.984 kB / 0.5141 GB, free: 76 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.888e-05/0.3729, allocations: 12.16 kB / 0.5141 GB, free: 68 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002504/0.3731, allocations: 53.05 kB / 0.5142 GB, free: 60 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001042/0.3742, allocations: 1.418 MB / 0.5156 GB, free: 14.6 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001265/0.3743, allocations: 15 kB / 0.5156 GB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.545e-05/0.3743, allocations: 12.73 kB / 0.5156 GB, free: 14.59 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (23): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001456/0.3745, allocations: 143.8 kB / 0.5157 GB, free: 14.46 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.718e-05/0.3746, allocations: 24.48 kB / 0.5158 GB, free: 14.44 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002481/0.3748, allocations: 142.2 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.987e-06/0.3748, allocations: 3.172 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.943e-06/0.3748, allocations: 5 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.3748, allocations: 0.5625 kB / 0.5159 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007169/0.3756, allocations: 499.5 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.3756, allocations: 1 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001789/0.3758, allocations: 32.86 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.947e-06/0.3758, allocations: 2.719 kB / 0.5164 GB, free: 13.96 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.737e-05/0.3758, allocations: 6.109 kB / 0.5164 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008977/0.3767, allocations: 1.418 MB / 0.5178 GB, free: 12.5 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.384e-06/0.3767, allocations: 6.094 kB / 0.5178 GB, free: 12.49 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003559/0.3771, allocations: 312.8 kB / 0.5181 GB, free: 12.27 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.653e-05/0.3772, allocations: 96.77 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.463e-05/0.3772, allocations: 3.406 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.969e-05/0.3773, allocations: 5.938 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.071e-05/0.3773, allocations: 8.703 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.214e-05/0.3774, allocations: 3.641 kB / 0.5182 GB, free: 12.16 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001461/0.3775, allocations: 147.2 kB / 0.5184 GB, free: 12.07 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3775, allocations: 0 / 0.5184 GB, free: 12.07 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003584/0.3779, allocations: 51.06 kB / 0.5184 GB, free: 12.05 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (13): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0006413/0.3785, allocations: 0.8324 MB / 0.5192 GB, free: 11.31 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003459/0.3789, allocations: 137.8 kB / 0.5194 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.3789, allocations: 0 / 0.5194 GB, free: 11.26 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.3791, allocations: 57.22 kB / 0.5194 GB, free: 11.25 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004079/0.3795, allocations: 32.17 kB / 0.5194 GB, free: 11.23 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003321/0.3828, allocations: 2.351 MB / 0.5217 GB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.3832, allocations: 0.7466 MB / 0.5225 GB, free: 8.684 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001186/0.3834, allocations: 32.45 kB / 0.5225 GB, free: 8.68 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.942e-05/0.3835, allocations: 58.38 kB / 0.5226 GB, free: 8.637 MB / 398.1 MB Notification: Performance of SimCode: time 7.82e-07/0.3835, allocations: 0 / 0.5226 GB, free: 8.637 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03357/0.4171, allocations: 3.862 MB / 0.5263 GB, free: 8.051 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.59/12.01, allocations: 12.48 kB / 0.5263 GB, free: 8.043 MB / 398.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_Generic_Test_GeneratorTest.fmu > PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches