Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Elementary.Transformer,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer",fmuType="me",version="2.0",platforms={"static"}) [: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.2+maint.om/package.mo): time 0.00172/0.001719, allocations: 183.8 kB / 8.136 MB, free: 2.215 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.068/1.068, allocations: 194.2 MB / 202.8 MB, free: 8.727 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001588/0.001588, allocations: 117.3 kB / 247.7 MB, free: 6.418 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1552/0.1552, allocations: 37.91 MB / 330.5 MB, free: 6.992 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.182/0.3373, allocations: 59.34 MB / 389.9 MB, free: 78.04 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07343/0.4107, allocations: 53.24 MB / 443.1 MB, free: 24.89 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2345/0.6453, allocations: 94.19 MB / 0.5247 GB, free: 9.531 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002021/0.6455, allocations: 85.33 kB / 0.5248 GB, free: 9.52 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.02985/0.6754, allocations: 11.88 MB / 0.5364 GB, free: 2.805 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.666e-05/0.6754, allocations: 11.94 kB / 0.5364 GB, free: 2.793 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.6756, allocations: 63.25 kB / 0.5365 GB, free: 2.73 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002741/0.6783, allocations: 1.222 MB / 0.5377 GB, free: 1.676 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.114e-05/0.6784, allocations: 12 kB / 0.5377 GB, free: 1.664 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.763e-05/0.6784, allocations: 24 kB / 0.5377 GB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0005163/0.6789, allocations: 370.4 kB / 0.5381 GB, free: 1.387 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000555/0.6795, allocations: 485.3 kB / 0.5385 GB, free: 0.9883 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.336e-05/0.6795, allocations: 3.938 kB / 0.5385 GB, free: 0.9844 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.541e-05/0.6796, allocations: 4 kB / 0.5385 GB, free: 0.9805 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.453e-05/0.6796, allocations: 17.44 kB / 0.5385 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00197/0.6816, allocations: 1.868 MB / 0.5404 GB, free: 15.26 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004638/0.6821, allocations: 292.5 kB / 0.5406 GB, free: 15.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002653/0.6823, allocations: 175.6 kB / 0.5408 GB, free: 14.91 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.323e-05/0.6824, allocations: 6.875 kB / 0.5408 GB, free: 14.9 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002755/0.6826, allocations: 260.3 kB / 0.5411 GB, free: 14.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=35): time 2.124e-06/0.6827, allocations: 0 / 0.5411 GB, free: 14.66 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.00128/0.6839, allocations: 0.8771 MB / 0.5419 GB, free: 13.86 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.242e-05/0.684, allocations: 162 kB / 0.5421 GB, free: 13.66 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003052/0.6843, allocations: 330 kB / 0.5424 GB, free: 13.39 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.504e-05/0.6844, allocations: 25.7 kB / 0.5424 GB, free: 13.36 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000123/0.6845, allocations: 240.6 kB / 0.5426 GB, free: 13.14 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.986e-05/0.6846, allocations: 109 kB / 0.5427 GB, free: 13.05 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.562e-05/0.6846, allocations: 0 / 0.5427 GB, free: 13.05 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.6847, allocations: 364 kB / 0.5431 GB, free: 12.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001835/0.6849, allocations: 107.8 kB / 0.5432 GB, free: 12.64 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002306/0.6852, allocations: 273.7 kB / 0.5435 GB, free: 12.34 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002126/0.6854, allocations: 155 kB / 0.5436 GB, free: 12.23 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.284e-06/0.6854, allocations: 0 / 0.5436 GB, free: 12.23 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005806/0.686, allocations: 422.5 kB / 0.544 GB, free: 11.89 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.07e-05/0.686, allocations: 4 kB / 0.544 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.157e-06/0.686, allocations: 8 kB / 0.544 GB, free: 11.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.564e-05/0.686, allocations: 8 kB / 0.544 GB, free: 11.87 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000436/0.6865, allocations: 112.2 kB / 0.5441 GB, free: 11.76 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.172e-05/0.6865, allocations: 15.98 kB / 0.5442 GB, free: 11.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003097/0.6868, allocations: 15.98 kB / 0.5442 GB, free: 11.73 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.348e-05/0.6869, allocations: 31.8 kB / 0.5442 GB, free: 11.7 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 11 (system.initime,$whenCondition1,$whenCondition2,$PRE.tapChanger.cnt_1,tapChanger.cnt_1,$PRE.tapChanger.cnt_2,tapChanger.cnt_2,$PRE.tapChanger.tap_1,tapChanger.tap_1,$PRE.tapChanger.tap_2,tapChanger.tap_2) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (60): * Single equations (assignments): 59 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001343/0.687, allocations: 157.5 kB / 0.5443 GB, free: 11.54 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.183e-05/0.6871, allocations: 47.44 kB / 0.5444 GB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005287/0.6876, allocations: 352.4 kB / 0.5447 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.6877, allocations: 4 kB / 0.5447 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.218e-06/0.6877, allocations: 0 / 0.5447 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.749e-06/0.6877, allocations: 0 / 0.5447 GB, free: 11.23 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009115/0.6886, allocations: 0.7978 MB / 0.5455 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.987e-06/0.6886, allocations: 3.984 kB / 0.5455 GB, free: 10.55 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003362/0.689, allocations: 59.97 kB / 0.5456 GB, free: 10.49 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.013e-06/0.689, allocations: 4.031 kB / 0.5456 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.612e-05/0.689, allocations: 7.75 kB / 0.5456 GB, free: 10.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.979e-06/0.689, allocations: 7.938 kB / 0.5456 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.304e-06/0.689, allocations: 0 / 0.5456 GB, free: 10.47 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007135/0.6897, allocations: 0.6459 MB / 0.5462 GB, free: 9.926 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0009888/0.6907, allocations: 1.18 MB / 0.5474 GB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001502/0.6909, allocations: 147.2 kB / 0.5475 GB, free: 8.754 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.907e-05/0.691, allocations: 8.125 kB / 0.5475 GB, free: 8.746 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002305/0.6912, allocations: 11.98 kB / 0.5475 GB, free: 8.734 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.535e-05/0.6913, allocations: 26 kB / 0.5476 GB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.557e-05/0.6913, allocations: 27.84 kB / 0.5476 GB, free: 8.691 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0002305/0.6916, allocations: 246.6 kB / 0.5478 GB, free: 8.5 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009984/0.6926, allocations: 99.81 kB / 0.5479 GB, free: 8.406 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 1 (trafo.i1) * Number of discrete variables: 7 ($whenCondition1,$whenCondition2,tapChanger.tap_1,tapChanger.tap_2,tapChanger.cnt_1,tapChanger.cnt_2,system.initime) * Number of discrete states: 6 (tapChanger.tap_2,tapChanger.cnt_2,$whenCondition2,tapChanger.tap_1,tapChanger.cnt_1,$whenCondition1) * Top-level inputs: 0 Notification: Strong component statistics for simulation (33): * Single equations (assignments): 31 * Array equations: 0 * Algorithm blocks: 1 * 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.0002131/0.6928, allocations: 146.3 kB / 0.5481 GB, free: 8.258 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004759/0.6933, allocations: 357.9 kB / 0.5484 GB, free: 7.984 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.6933, allocations: 4.062 kB / 0.5484 GB, free: 7.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002385/0.6935, allocations: 223 kB / 0.5486 GB, free: 7.816 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004649/0.694, allocations: 80.05 kB / 0.5487 GB, free: 7.766 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.6953, allocations: 0.7007 MB / 0.5494 GB, free: 7.109 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000599/0.6959, allocations: 0.9434 MB / 0.5503 GB, free: 6.152 MB / 362.7 MB Notification: Performance of SimCode: time 2.91e-07/0.6959, allocations: 3.938 kB / 0.5503 GB, free: 6.148 MB / 362.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Elementary_Transformer.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Elementary.Transformer.pipe 2>&1)