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: translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") translateModel(PowerSystems.Examples.Generic.Test.GeneratorTest,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|generator.p.1.|generator.p.2.|generator.phi",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001453/0.001453, allocations: 114.8 kB / 17.74 MB, free: 5.344 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.001642/0.001642, allocations: 188.5 kB / 18.67 MB, free: 4.422 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.345/1.345, allocations: 222.9 MB / 242.4 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1749/0.1749, allocations: 38.04 MB / 330.6 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00149/0.001491, allocations: 63.83 kB / 458.8 MB, free: 6.863 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.366/0.3675, allocations: 58.05 MB / 0.5048 GB, free: 7.793 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.Generic.Test.GeneratorTest): time 0.004566/0.3721, allocations: 3.32 MB / 0.508 GB, free: 5.496 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.001563/0.3737, allocations: 1.219 MB / 0.5092 GB, free: 4.645 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001344/0.3739, allocations: 9.438 kB / 0.5092 GB, free: 4.641 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006135/0.3745, allocations: 154.6 kB / 0.5093 GB, free: 4.547 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004133/0.3749, allocations: 179.5 kB / 0.5095 GB, free: 4.445 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003236/0.3753, allocations: 132.8 kB / 0.5096 GB, free: 4.379 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003378/0.3756, allocations: 280.7 kB / 0.5099 GB, free: 4.254 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000292/0.3759, allocations: 125.9 kB / 0.51 GB, free: 4.203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002027/0.3761, allocations: 136.2 kB / 0.5102 GB, free: 4.137 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001957/0.3763, allocations: 109.1 kB / 0.5103 GB, free: 4.086 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.094e-05/0.3764, allocations: 18 kB / 0.5103 GB, free: 4.082 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003846/0.3768, allocations: 225.1 kB / 0.5105 GB, free: 3.996 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 8.551e-05/0.3768, allocations: 60.89 kB / 0.5106 GB, free: 3.969 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.934e-05/0.377, allocations: 98.72 kB / 0.5106 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004313/0.3774, allocations: 281.5 kB / 0.5109 GB, free: 3.812 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3774, allocations: 0 / 0.5109 GB, free: 3.812 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.883e-06/0.3774, allocations: 0 / 0.5109 GB, free: 3.812 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.603e-06/0.3774, allocations: 8.688 kB / 0.5109 GB, free: 3.805 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.0005882/0.378, allocations: 0.4987 MB / 0.5114 GB, free: 3.348 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.914e-05/0.3781, allocations: 12.84 kB / 0.5114 GB, free: 3.344 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007107/0.3788, allocations: 77.97 kB / 0.5115 GB, free: 3.328 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.3791, allocations: 267.6 kB / 0.5118 GB, free: 3.086 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.951e-05/0.3791, allocations: 13.16 kB / 0.5118 GB, free: 3.082 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.578e-05/0.3792, allocations: 14.94 kB / 0.5118 GB, free: 3.078 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004222/0.3796, allocations: 275 kB / 0.512 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.3796, allocations: 0.6562 kB / 0.512 GB, free: 2.918 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.412e-05/0.3796, allocations: 14.3 kB / 0.5121 GB, free: 2.906 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.173e-05/0.3797, allocations: 17.14 kB / 0.5121 GB, free: 2.902 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003918/0.3801, allocations: 228.9 kB / 0.5123 GB, free: 2.824 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001481/0.3816, allocations: 1.197 MB / 0.5135 GB, free: 1.852 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002238/0.3818, allocations: 134 kB / 0.5136 GB, free: 1.77 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.161e-05/0.3819, allocations: 52.23 kB / 0.5136 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.194e-05/0.3819, allocations: 1.125 kB / 0.5136 GB, free: 1.738 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.935e-05/0.3819, allocations: 37.27 kB / 0.5137 GB, free: 1.695 MB / 382.1 MB Notification: Performance of pre-optimization done (n=12): time 1.543e-06/0.3819, allocations: 0 / 0.5137 GB, free: 1.695 MB / 382.1 MB Notification: Performance of matching and sorting (n=12): time 0.0003482/0.3823, allocations: 166.9 kB / 0.5138 GB, free: 1.613 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.557e-05/0.3823, allocations: 79.94 kB / 0.5139 GB, free: 1.52 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001906/0.3825, allocations: 204.8 kB / 0.5141 GB, free: 1.387 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.399e-05/0.3826, allocations: 34.86 kB / 0.5141 GB, free: 1.348 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.328e-05/0.3826, allocations: 151.4 kB / 0.5143 GB, free: 1.215 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.396e-05/0.3827, allocations: 45.58 kB / 0.5143 GB, free: 1.18 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/0.3828, allocations: 38.61 kB / 0.5144 GB, free: 1.152 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.907e-05/0.3828, allocations: 330.1 kB / 0.5147 GB, free: 0.832 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.964e-05/0.3829, allocations: 41.14 kB / 0.5147 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001201/0.383, allocations: 130.5 kB / 0.5148 GB, free: 0.6953 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001951/0.3832, allocations: 172.7 kB / 0.515 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.3833, allocations: 5.062 kB / 0.515 GB, free: 0.5508 MB / 382.1 MB Notification: Performance of matching and sorting (n=23) (initialization): time 0.0003002/0.3836, allocations: 212.8 kB / 0.5152 GB, free: 456 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.3836, allocations: 5.922 kB / 0.5152 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.3836, allocations: 3.406 kB / 0.5152 GB, free: 456 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.15e-05/0.3836, allocations: 12.81 kB / 0.5152 GB, free: 448 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002417/0.3839, allocations: 50.75 kB / 0.5153 GB, free: 444 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001014/0.3849, allocations: 1.42 MB / 0.5167 GB, free: 14.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001212/0.385, allocations: 24.22 kB / 0.5167 GB, free: 14.96 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.739e-05/0.3851, allocations: 6.719 kB / 0.5167 GB, free: 14.96 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.000141/0.3852, allocations: 150.9 kB / 0.5168 GB, free: 14.82 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.356e-05/0.3853, allocations: 19.72 kB / 0.5169 GB, free: 14.81 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002554/0.3855, allocations: 139.4 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.697e-06/0.3855, allocations: 2.125 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.333e-06/0.3855, allocations: 1.219 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.601e-06/0.3856, allocations: 6.031 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006834/0.3862, allocations: 497.8 kB / 0.5175 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.749e-06/0.3863, allocations: 1.844 kB / 0.5175 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001734/0.3864, allocations: 32.94 kB / 0.5175 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.968e-06/0.3864, allocations: 1.906 kB / 0.5175 GB, free: 14.33 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.693e-05/0.3865, allocations: 6.062 kB / 0.5175 GB, free: 14.32 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009425/0.3874, allocations: 1.416 MB / 0.5189 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.697e-06/0.3874, allocations: 2.469 kB / 0.5189 GB, free: 12.87 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003666/0.3878, allocations: 307.5 kB / 0.5192 GB, free: 12.64 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.163e-05/0.3879, allocations: 96.83 kB / 0.5193 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.751e-05/0.3879, allocations: 5.688 kB / 0.5193 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.447e-05/0.388, allocations: 2.781 kB / 0.5193 GB, free: 12.54 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.863e-05/0.3881, allocations: 16.52 kB / 0.5193 GB, free: 12.53 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.336e-05/0.3881, allocations: 4.078 kB / 0.5193 GB, free: 12.53 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0001501/0.3882, allocations: 147.5 kB / 0.5195 GB, free: 12.43 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3882, allocations: 0 / 0.5195 GB, free: 12.43 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0003744/0.3886, allocations: 47.12 kB / 0.5195 GB, free: 12.43 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.0001237/0.3888, allocations: 107.1 kB / 0.5196 GB, free: 12.33 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0003456/0.3891, allocations: 133.9 kB / 0.5197 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.3891, allocations: 0 / 0.5197 GB, free: 12.29 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001587/0.3893, allocations: 56.59 kB / 0.5198 GB, free: 12.27 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004253/0.3897, allocations: 36 kB / 0.5198 GB, free: 12.25 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001138/0.3909, allocations: 0.5427 MB / 0.5204 GB, free: 11.87 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003065/0.3912, allocations: 0.7478 MB / 0.5211 GB, free: 11.16 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.024e-05/0.3913, allocations: 18.62 kB / 0.5211 GB, free: 11.15 MB / 398.1 MB Notification: Performance of SimCode: time 9.32e-07/0.3913, allocations: 0 / 0.5211 GB, free: 11.15 MB / 398.1 MB Notification: Performance of Templates: time 0.006352/0.3976, allocations: 3.039 MB / 0.5241 GB, free: 10.88 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.makefile (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 & ./PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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