Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.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.Network.NetworkControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") translateModel(PowerSystems.Examples.Generic.Network.NetworkControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|impedance3.i.1.|impedance3.i.2.|impedance3.p.1.|impedance3.p.2.|impedance3.v.1.|impedance3.v.2.|turbine1.tau|turbine2.tau",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled") [: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.00111/0.00111, allocations: 185.8 kB / 8.134 MB, free: 2.191 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.431/1.431, 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.0008744/0.0008744, allocations: 91.69 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.1788/0.1788, allocations: 37.97 MB / 347.7 MB, free: 7.477 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 1.062e-05/1.074e-05, allocations: 0 / 410 MB, free: 46.88 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1252/0.1253, allocations: 56.33 MB / 466.3 MB, free: 6.484 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3151/0.4404, allocations: 103.5 MB / 0.5565 GB, free: 7.078 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002393/0.4407, allocations: 83.95 kB / 0.5566 GB, free: 6.996 MB / 394.7 MB Notification: Performance of FrontEnd: time 0.159/0.5997, allocations: 66.64 MB / 0.6216 GB, free: 3.645 MB / 458.7 MB Notification: Performance of Transformations before backend: time 6.782e-05/0.5998, allocations: 24 kB / 0.6217 GB, free: 3.621 MB / 458.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 299 * Number of variables: 299 Notification: Performance of Generate backend data structure: time 0.003135/0.603, allocations: 1.43 MB / 0.6231 GB, free: 2.133 MB / 458.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.603, allocations: 8.031 kB / 0.6231 GB, free: 2.125 MB / 458.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004201/0.6073, allocations: 493.7 kB / 0.6235 GB, free: 1.641 MB / 458.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001435/0.6087, allocations: 0.699 MB / 0.6242 GB, free: 0.8945 MB / 458.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.6088, allocations: 32 kB / 0.6242 GB, free: 0.8633 MB / 458.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000193/0.609, allocations: 71.91 kB / 0.6243 GB, free: 0.793 MB / 458.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.002061/0.611, allocations: 1.195 MB / 0.6255 GB, free: 15.59 MB / 474.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002309/0.6134, allocations: 1.393 MB / 0.6268 GB, free: 14.14 MB / 474.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.177e-05/0.6134, allocations: 4 kB / 0.6268 GB, free: 14.14 MB / 474.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001083/0.6135, allocations: 3.984 kB / 0.6268 GB, free: 14.14 MB / 474.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002891/0.6138, allocations: 122.2 kB / 0.627 GB, free: 14.02 MB / 474.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007992/0.6218, allocations: 4.793 MB / 0.6316 GB, free: 9.105 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001125/0.623, allocations: 0.7494 MB / 0.6324 GB, free: 8.344 MB / 474.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001041/0.624, allocations: 0.724 MB / 0.6331 GB, free: 7.613 MB / 474.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.514e-05/0.6241, allocations: 28.97 kB / 0.6331 GB, free: 7.586 MB / 474.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001129/0.6253, allocations: 0.7417 MB / 0.6338 GB, free: 6.82 MB / 474.7 MB Notification: Performance of pre-optimization done (n=126): time 4.278e-06/0.6253, allocations: 0 / 0.6338 GB, free: 6.82 MB / 474.7 MB Notification: Performance of matching and sorting (n=137): time 0.008838/0.6341, allocations: 4.529 MB / 0.6383 GB, free: 2.191 MB / 474.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.462e-05/0.6343, allocations: 124.1 kB / 0.6384 GB, free: 2.043 MB / 474.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006005/0.6349, allocations: 454.3 kB / 0.6388 GB, free: 1.598 MB / 474.7 MB Notification: Performance of collectPreVariables (initialization): time 7.947e-05/0.635, allocations: 29.7 kB / 0.6388 GB, free: 1.562 MB / 474.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003027/0.6353, allocations: 384.3 kB / 0.6392 GB, free: 1.18 MB / 474.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004002/0.6357, allocations: 449.2 kB / 0.6396 GB, free: 0.7344 MB / 474.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.663e-05/0.6357, allocations: 4 kB / 0.6396 GB, free: 0.7305 MB / 474.7 MB Notification: Performance of setup shared object (initialization): time 0.0001855/0.6359, allocations: 402.6 kB / 0.64 GB, free: 336 kB / 474.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.1295/0.7654, allocations: 0.538 MB / 0.6405 GB, free: 170.4 MB / 474.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008594/0.7663, allocations: 0.6848 MB / 0.6412 GB, free: 170.3 MB / 474.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008101/0.7671, allocations: 0.6429 MB / 0.6418 GB, free: 170.3 MB / 474.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.618e-06/0.7672, allocations: 0 / 0.6418 GB, free: 170.3 MB / 474.7 MB Notification: Performance of matching and sorting (n=162) (initialization): time 0.003751/0.7709, allocations: 1.999 MB / 0.6438 GB, free: 170.2 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001933/0.7711, allocations: 1.137 MB / 0.6449 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.1e-05/0.7711, allocations: 5.531 kB / 0.6449 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001906/0.7731, allocations: 0.6514 MB / 0.6455 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009385/0.774, allocations: 218.8 kB / 0.6458 GB, free: 169 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001661/0.7757, allocations: 1.68 MB / 0.6474 GB, free: 168.5 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009505/0.7766, allocations: 67.59 kB / 0.6475 GB, free: 168.5 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.524e-05/0.7767, allocations: 41.7 kB / 0.6475 GB, free: 168.5 MB / 474.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.377e-06/0.7768, allocations: 6.812 kB / 0.6475 GB, free: 168.5 MB / 474.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003156/0.7799, allocations: 1.829 MB / 0.6493 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.7799, allocations: 3.812 kB / 0.6493 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001836/0.7818, allocations: 0.6428 MB / 0.6499 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008897/0.7827, allocations: 214.2 kB / 0.6501 GB, free: 168.4 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006699/0.7894, allocations: 5.024 MB / 0.655 GB, free: 167.1 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001083/0.7905, allocations: 59.09 kB / 0.6551 GB, free: 167.1 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.58e-05/0.7906, allocations: 43.02 kB / 0.6551 GB, free: 167.1 MB / 474.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 13 * Number of states: 0 () * Number of discrete variables: 8 (system.initime,$whenCondition2,$whenCondition1,$PRE.disturbance.T_start,disturbance.T_start,$PRE.disturbance.count,disturbance.count,frequencyPowerControl.I.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (101): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {4 57} Notification: Performance of prepare postOptimizeDAE: time 0.0003092/0.791, allocations: 124.5 kB / 0.6553 GB, free: 167 MB / 474.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00015/0.7911, allocations: 94.88 kB / 0.6553 GB, free: 166.9 MB / 474.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003335/0.7944, allocations: 1.94 MB / 0.6572 GB, free: 166.8 MB / 474.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.133e-05/0.7945, allocations: 15.38 kB / 0.6573 GB, free: 166.8 MB / 474.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.7945, allocations: 3.906 kB / 0.6573 GB, free: 166.8 MB / 474.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.405e-05/0.7945, allocations: 6.938 kB / 0.6573 GB, free: 166.8 MB / 474.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005726/0.8002, allocations: 3.626 MB / 0.6608 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.8003, allocations: 0 / 0.6608 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000927/0.8012, allocations: 218.5 kB / 0.661 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001346/0.8026, allocations: 499.1 kB / 0.6615 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.06e-05/0.8026, allocations: 13.2 kB / 0.6615 GB, free: 166.2 MB / 474.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.006533/0.8092, allocations: 5.989 MB / 0.6673 GB, free: 163.6 MB / 474.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.081e-06/0.8092, allocations: 5.344 kB / 0.6674 GB, free: 163.6 MB / 474.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.003978/0.8132, allocations: 2.957 MB / 0.6702 GB, free: 163.1 MB / 474.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004765/0.8137, allocations: 288.3 kB / 0.6705 GB, free: 162.9 MB / 474.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001649/0.8139, allocations: 7.703 kB / 0.6705 GB, free: 162.9 MB / 474.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007705/0.8147, allocations: 64.08 kB / 0.6706 GB, free: 162.9 MB / 474.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001765/0.8148, allocations: 93.25 kB / 0.6707 GB, free: 162.9 MB / 474.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.133e-05/0.8149, allocations: 41.47 kB / 0.6707 GB, free: 162.9 MB / 474.7 MB Notification: Performance of sort global known variables: time 0.0003526/0.8153, allocations: 351 kB / 0.671 GB, free: 162.8 MB / 474.7 MB Notification: Performance of remove unused functions: time 0.001519/0.8168, allocations: 0.5496 MB / 0.6716 GB, free: 162.8 MB / 474.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * Number of states: 4 (inertia1.phi,inertia1.w,frequencyPowerControl.I.y,system.theta) * Number of discrete variables: 5 (system.initime,$whenCondition2,$whenCondition1,disturbance.T_start,disturbance.count) * Number of discrete states: 1 (disturbance.count) * Top-level inputs: 0 Notification: Strong component statistics for simulation (103): * Single equations (assignments): 98 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 2 {3 40,1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0001984/0.817, allocations: 121 kB / 0.6717 GB, free: 162.7 MB / 474.7 MB Notification: Performance of simCode: created initialization part: time 0.003466/0.8205, allocations: 2.558 MB / 0.6742 GB, free: 162.5 MB / 474.7 MB Notification: Performance of simCode: created event and clocks part: time 3.436e-06/0.8205, allocations: 0 / 0.6742 GB, free: 162.5 MB / 474.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001498/0.822, allocations: 1.105 MB / 0.6753 GB, free: 162.3 MB / 474.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008014/0.8228, allocations: 142.3 kB / 0.6754 GB, free: 162.3 MB / 474.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003993/0.8268, allocations: 2.217 MB / 0.6776 GB, free: 161.7 MB / 474.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008919/0.8277, allocations: 1.322 MB / 0.6789 GB, free: 161 MB / 474.7 MB Notification: Performance of SimCode: time 9.12e-07/0.8278, allocations: 0 / 0.6789 GB, free: 161 MB / 474.7 MB Notification: Performance of Templates: time 0.03655/0.8643, allocations: 25.1 MB / 0.7034 GB, free: 156.7 MB / 474.7 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.makefile (rm -f PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.sim & ./PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.pipe 2>&1) diffSimulationResults("PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/ReferenceFiles/PowerSystems/PowerSystems.Examples.Generic.Network.NetworkControlled.mat","../files/PowerSystems_latest_PowerSystems.Examples.Generic.Network.NetworkControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches