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.001424/0.001423, allocations: 109.5 kB / 17.06 MB, free: 5.977 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.001532/0.001532, allocations: 200 kB / 18 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.339/1.339, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1769/0.1769, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001535/0.001535, allocations: 55.91 kB / 457.6 MB, free: 7.355 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3429/0.3445, allocations: 58.06 MB / 0.5036 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004868/0.3494, allocations: 3.314 MB / 0.5068 GB, free: 5.105 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001579/0.351, allocations: 1.224 MB / 0.508 GB, free: 4.242 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002137/0.3513, allocations: 13.47 kB / 0.508 GB, free: 4.234 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006467/0.3519, allocations: 154.3 kB / 0.5082 GB, free: 4.141 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005103/0.3524, allocations: 175.8 kB / 0.5084 GB, free: 4.043 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000379/0.3528, allocations: 136.3 kB / 0.5085 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003984/0.3532, allocations: 285.7 kB / 0.5088 GB, free: 3.844 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002798/0.3535, allocations: 121.7 kB / 0.5089 GB, free: 3.793 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002589/0.3538, allocations: 128 kB / 0.509 GB, free: 3.734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002006/0.354, allocations: 109.2 kB / 0.5091 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.505e-05/0.354, allocations: 13.44 kB / 0.5091 GB, free: 3.684 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003944/0.3544, allocations: 225.3 kB / 0.5093 GB, free: 3.598 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.527e-05/0.3545, allocations: 65.59 kB / 0.5094 GB, free: 3.566 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.851e-05/0.3546, allocations: 94.89 kB / 0.5095 GB, free: 3.512 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003932/0.355, allocations: 287.7 kB / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.355, allocations: 0 / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.355, allocations: 0 / 0.5098 GB, free: 3.406 MB / 382.1 MB Notification: Performance of Transformations before backend: time 7.094e-06/0.355, allocations: 1.281 kB / 0.5098 GB, free: 3.406 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.0005401/0.3556, allocations: 0.5073 MB / 0.5103 GB, free: 2.938 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.517e-05/0.3556, allocations: 13.14 kB / 0.5103 GB, free: 2.934 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.434e-05/0.3557, allocations: 50.09 kB / 0.5103 GB, free: 2.887 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006356/0.3563, allocations: 81.55 kB / 0.5104 GB, free: 2.867 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002613/0.3566, allocations: 265.5 kB / 0.5107 GB, free: 2.629 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.478e-05/0.3566, allocations: 15.67 kB / 0.5107 GB, free: 2.621 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.918e-05/0.3567, allocations: 20.25 kB / 0.5107 GB, free: 2.613 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003949/0.3571, allocations: 270.8 kB / 0.5109 GB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.492e-05/0.3571, allocations: 5.125 kB / 0.5109 GB, free: 2.453 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.168e-05/0.3571, allocations: 9.812 kB / 0.511 GB, free: 2.445 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.716e-05/0.3571, allocations: 17.31 kB / 0.511 GB, free: 2.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003269/0.3575, allocations: 227.3 kB / 0.5112 GB, free: 2.363 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00125/0.3587, allocations: 1.198 MB / 0.5124 GB, free: 1.391 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001873/0.3589, allocations: 139.8 kB / 0.5125 GB, free: 1.309 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.335e-05/0.359, allocations: 50.08 kB / 0.5125 GB, free: 1.277 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.316e-05/0.359, allocations: 5.125 kB / 0.5125 GB, free: 1.273 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.538e-05/0.359, allocations: 32.66 kB / 0.5126 GB, free: 1.234 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.362e-06/0.3591, allocations: 0 / 0.5126 GB, free: 1.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0002976/0.3594, allocations: 167.1 kB / 0.5127 GB, free: 1.152 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.694e-05/0.3594, allocations: 79.11 kB / 0.5128 GB, free: 1.059 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.3596, allocations: 206.3 kB / 0.513 GB, free: 0.9258 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.01e-05/0.3596, allocations: 29.7 kB / 0.513 GB, free: 0.8906 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.526e-05/0.3596, allocations: 156.4 kB / 0.5132 GB, free: 0.7539 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.752e-05/0.3597, allocations: 44.7 kB / 0.5132 GB, free: 0.7188 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.441e-05/0.3597, allocations: 39.2 kB / 0.5133 GB, free: 0.6914 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.477e-05/0.3598, allocations: 332.8 kB / 0.5136 GB, free: 376 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.117e-05/0.3599, allocations: 42.19 kB / 0.5136 GB, free: 364 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.142e-05/0.36, allocations: 128.7 kB / 0.5137 GB, free: 240 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001683/0.3601, allocations: 181.8 kB / 0.5139 GB, free: 88 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.3601, allocations: 1.094 kB / 0.5139 GB, free: 88 kB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0002892/0.3604, allocations: 208.6 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.636e-05/0.3605, allocations: 6.594 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.211e-06/0.3605, allocations: 7.062 kB / 0.5141 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.556e-05/0.3605, allocations: 10.27 kB / 0.5141 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000227/0.3607, allocations: 45.5 kB / 0.5142 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.000923/0.3617, allocations: 1.415 MB / 0.5156 GB, free: 14.52 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001124/0.3618, allocations: 18.66 kB / 0.5156 GB, free: 14.51 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.658e-05/0.3618, allocations: 16.67 kB / 0.5156 GB, free: 14.5 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.0001266/0.3619, allocations: 143.4 kB / 0.5157 GB, free: 14.37 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.439e-05/0.362, allocations: 20.58 kB / 0.5158 GB, free: 14.36 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000223/0.3622, allocations: 143.5 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.3622, allocations: 2.047 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.863e-06/0.3622, allocations: 1.375 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.388e-06/0.3623, allocations: 4.547 kB / 0.5159 GB, free: 14.27 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006233/0.3629, allocations: 499.2 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.645e-06/0.3629, allocations: 1.031 kB / 0.5164 GB, free: 13.88 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001727/0.3631, allocations: 37.59 kB / 0.5164 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.669e-06/0.3631, allocations: 1.094 kB / 0.5164 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.28e-05/0.3631, allocations: 6.922 kB / 0.5164 GB, free: 13.86 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008239/0.3639, allocations: 1.416 MB / 0.5178 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.483e-06/0.3639, allocations: 1.094 kB / 0.5178 GB, free: 12.41 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003151/0.3643, allocations: 316.2 kB / 0.5181 GB, free: 12.18 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.902e-05/0.3643, allocations: 100.6 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.3644, allocations: 2.75 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.544e-05/0.3645, allocations: 2.156 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.624e-05/0.3645, allocations: 12.03 kB / 0.5182 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.175e-05/0.3645, allocations: 8.812 kB / 0.5182 GB, free: 12.06 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001298/0.3647, allocations: 147.4 kB / 0.5184 GB, free: 11.97 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3647, allocations: 0 / 0.5184 GB, free: 11.97 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.365, allocations: 47.38 kB / 0.5184 GB, free: 11.96 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.0005439/0.3656, allocations: 0.8327 MB / 0.5192 GB, free: 11.21 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002917/0.3659, allocations: 132.3 kB / 0.5194 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3659, allocations: 0.75 kB / 0.5194 GB, free: 11.17 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001451/0.366, allocations: 62.58 kB / 0.5194 GB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003742/0.3664, allocations: 30.89 kB / 0.5194 GB, free: 11.14 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002658/0.3691, allocations: 2.35 MB / 0.5217 GB, free: 9.301 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003116/0.3694, allocations: 0.7465 MB / 0.5225 GB, free: 8.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 9.081e-05/0.3695, allocations: 30.27 kB / 0.5225 GB, free: 8.59 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.715e-05/0.3696, allocations: 59.78 kB / 0.5226 GB, free: 8.547 MB / 398.1 MB Notification: Performance of SimCode: time 2e-07/0.3696, allocations: 0 / 0.5226 GB, free: 8.547 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02225/0.3919, allocations: 3.855 MB / 0.5263 GB, free: 7.965 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.95/11.34, allocations: 16.45 kB / 0.5263 GB, free: 7.953 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