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/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001014/0.001014, allocations: 183.8 kB / 8.134 MB, free: 2.207 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.253/1.253, allocations: 205.2 MB / 213.7 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009736/0.0009735, allocations: 85.34 kB / 261.7 MB, free: 13.55 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1-master/package.mo): time 0.2612/0.2612, allocations: 37.98 MB / 347.7 MB, free: 7.465 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.049e-05/1.051e-05, allocations: 4 kB / 410 MB, free: 46.86 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1289/0.1289, allocations: 56.31 MB / 466.3 MB, free: 6.477 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3698/0.4988, allocations: 93.63 MB / 0.5468 GB, free: 0.9492 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002719/0.4991, allocations: 83.95 kB / 0.5469 GB, free: 0.8672 MB / 378.7 MB Notification: Performance of FrontEnd: time 0.02468/0.5238, allocations: 9.404 MB / 0.5561 GB, free: 7.371 MB / 394.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.5239, allocations: 8 kB / 0.5561 GB, free: 7.363 MB / 394.7 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.0005547/0.5244, allocations: 480.5 kB / 0.5566 GB, free: 6.844 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.598e-05/0.5245, allocations: 8.031 kB / 0.5566 GB, free: 6.836 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000708/0.5252, allocations: 87.61 kB / 0.5567 GB, free: 6.75 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003327/0.5255, allocations: 262.9 kB / 0.5569 GB, free: 6.453 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.666e-05/0.5255, allocations: 4 kB / 0.5569 GB, free: 6.449 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.712e-05/0.5256, allocations: 19.91 kB / 0.5569 GB, free: 6.43 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002461/0.5258, allocations: 136.3 kB / 0.5571 GB, free: 6.297 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003179/0.5262, allocations: 231.7 kB / 0.5573 GB, free: 6.047 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.404e-05/0.5262, allocations: 4 kB / 0.5573 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.973e-05/0.5262, allocations: 0 / 0.5573 GB, free: 6.043 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.582e-05/0.5262, allocations: 12.31 kB / 0.5573 GB, free: 6.031 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001537/0.5278, allocations: 1.223 MB / 0.5585 GB, free: 4.719 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003106/0.5281, allocations: 149.3 kB / 0.5586 GB, free: 4.555 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.34e-05/0.5282, allocations: 45.77 kB / 0.5587 GB, free: 4.504 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.727e-05/0.5282, allocations: 4 kB / 0.5587 GB, free: 4.5 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.816e-05/0.5283, allocations: 38.5 kB / 0.5587 GB, free: 4.453 MB / 394.7 MB Notification: Performance of pre-optimization done (n=14): time 1.433e-06/0.5283, allocations: 0 / 0.5587 GB, free: 4.453 MB / 394.7 MB Notification: Performance of matching and sorting (n=14): time 0.0002641/0.5285, allocations: 125.7 kB / 0.5588 GB, free: 4.324 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.71e-05/0.5286, allocations: 85.05 kB / 0.5589 GB, free: 4.223 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001265/0.5287, allocations: 154.6 kB / 0.5591 GB, free: 4.062 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.535e-05/0.5287, allocations: 25.7 kB / 0.5591 GB, free: 4.031 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.702e-05/0.5288, allocations: 139.9 kB / 0.5592 GB, free: 3.891 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.619e-05/0.5289, allocations: 51.3 kB / 0.5593 GB, free: 3.84 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.063e-06/0.5289, allocations: 4.031 kB / 0.5593 GB, free: 3.836 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.529, allocations: 330.8 kB / 0.5596 GB, free: 3.504 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.257e-05/0.529, allocations: 32 kB / 0.5596 GB, free: 3.473 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001014/0.5292, allocations: 119 kB / 0.5597 GB, free: 3.32 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.443e-05/0.5293, allocations: 60.72 kB / 0.5598 GB, free: 3.262 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.5293, allocations: 0 / 0.5598 GB, free: 3.262 MB / 394.7 MB Notification: Performance of matching and sorting (n=24) (initialization): time 0.0002588/0.5295, allocations: 186.8 kB / 0.56 GB, free: 3.074 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.352e-05/0.5296, allocations: 5.406 kB / 0.56 GB, free: 3.07 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.999e-06/0.5296, allocations: 7.984 kB / 0.56 GB, free: 3.062 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.297e-05/0.5296, allocations: 4 kB / 0.56 GB, free: 3.059 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002048/0.5298, allocations: 55.92 kB / 0.56 GB, free: 3.004 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.166e-06/0.5298, allocations: 4.344 kB / 0.56 GB, free: 3 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001055/0.5299, allocations: 23.83 kB / 0.5601 GB, free: 2.977 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.666e-05/0.53, allocations: 7.984 kB / 0.5601 GB, free: 2.969 MB / 394.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (24): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.307e-05/0.53, allocations: 116.8 kB / 0.5602 GB, free: 2.848 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.379e-05/0.5301, allocations: 15.81 kB / 0.5602 GB, free: 2.832 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002488/0.5303, allocations: 131.1 kB / 0.5603 GB, free: 2.699 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.586e-06/0.5304, allocations: 4 kB / 0.5603 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.5304, allocations: 0 / 0.5603 GB, free: 2.695 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.5304, allocations: 3.984 kB / 0.5603 GB, free: 2.691 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007167/0.5311, allocations: 0.6273 MB / 0.5609 GB, free: 1.977 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.5311, allocations: 4.25 kB / 0.5609 GB, free: 1.973 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001661/0.5313, allocations: 35.92 kB / 0.561 GB, free: 1.938 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.296e-06/0.5313, allocations: 4 kB / 0.561 GB, free: 1.934 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.455e-05/0.5313, allocations: 4 kB / 0.561 GB, free: 1.93 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.5313, allocations: 4 kB / 0.561 GB, free: 1.926 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.115e-06/0.5314, allocations: 4 kB / 0.561 GB, free: 1.922 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0004249/0.5318, allocations: 450.2 kB / 0.5614 GB, free: 1.383 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.983e-05/0.5318, allocations: 97 kB / 0.5615 GB, free: 1.27 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.212e-05/0.5319, allocations: 4 kB / 0.5615 GB, free: 1.266 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.532, allocations: 4 kB / 0.5615 GB, free: 1.262 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.716e-05/0.532, allocations: 19.95 kB / 0.5615 GB, free: 1.242 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.407e-05/0.5321, allocations: 7.984 kB / 0.5616 GB, free: 1.234 MB / 394.7 MB Notification: Performance of sort global known variables: time 8.254e-05/0.5321, allocations: 132 kB / 0.5617 GB, free: 1.105 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.0003267/0.5325, allocations: 51.84 kB / 0.5617 GB, free: 1.055 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (inertia.w,constantTorque.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 14 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001297/0.5326, allocations: 99.19 kB / 0.5618 GB, free: 0.9492 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0001958/0.5328, allocations: 116.2 kB / 0.5619 GB, free: 0.8359 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.5328, allocations: 7.875 kB / 0.5619 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 7.663e-05/0.5329, allocations: 55.92 kB / 0.562 GB, free: 0.7734 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002955/0.5332, allocations: 34.59 kB / 0.562 GB, free: 0.7422 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007213/0.5339, allocations: 427.8 kB / 0.5624 GB, free: 276 kB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003222/0.5343, allocations: 0.7665 MB / 0.5632 GB, free: 15.48 MB / 410.7 MB Notification: Performance of SimCode: time 2.21e-07/0.5343, allocations: 0 / 0.5632 GB, free: 15.48 MB / 410.7 MB Notification: Performance of Templates: time 0.003904/0.5382, allocations: 1.394 MB / 0.5645 GB, free: 14.09 MB / 410.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Test.GeneratorTest.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Test.GeneratorTest.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches