Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.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/ThermoPower 3.1.0-master/package.mo", uses=false) Using package ThermoPower with version 3.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-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: "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ThermoPower.Test.ElectricalComponents.TestElectrical3,fileNamePrefix="ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3",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.3+maint.om/package.mo): time 0.0009265/0.0009265, allocations: 184.5 kB / 8.138 MB, free: 2.223 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.007/1.007, 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.000812/0.000812, allocations: 89.5 kB / 261.7 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ThermoPower 3.1.0-master/package.mo): time 0.279/0.279, allocations: 48.75 MB / 358.5 MB, free: 53.12 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.09176/0.3708, allocations: 66.37 MB / 424.8 MB, free: 8.098 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08779/0.4586, allocations: 60.25 MB / 485.1 MB, free: 11.71 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2223/0.6809, allocations: 86.15 MB / 0.5578 GB, free: 14.59 MB / 394.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001925/0.6812, allocations: 72.95 kB / 0.5579 GB, free: 14.52 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: 38 * Number of variables: 38 Notification: Performance of Generate backend data structure: time 0.01081/0.692, allocations: 4.124 MB / 0.5619 GB, free: 10.39 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.372e-05/0.692, allocations: 8 kB / 0.5619 GB, free: 10.39 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.531e-05/0.6921, allocations: 31.62 kB / 0.562 GB, free: 10.36 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003556/0.6925, allocations: 274.3 kB / 0.5622 GB, free: 10.05 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.193e-05/0.6925, allocations: 37.69 kB / 0.5623 GB, free: 10.01 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.311e-05/0.6926, allocations: 16 kB / 0.5623 GB, free: 9.992 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001916/0.6928, allocations: 83.98 kB / 0.5624 GB, free: 9.91 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000218/0.693, allocations: 145.4 kB / 0.5625 GB, free: 9.762 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.316e-05/0.693, allocations: 3.984 kB / 0.5625 GB, free: 9.758 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.647e-05/0.6931, allocations: 7.906 kB / 0.5625 GB, free: 9.75 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.494e-06/0.6931, allocations: 4 kB / 0.5625 GB, free: 9.746 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007876/0.6939, allocations: 0.6079 MB / 0.5631 GB, free: 9.086 MB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002073/0.6941, allocations: 85.8 kB / 0.5632 GB, free: 8.996 MB / 394.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000103/0.6942, allocations: 68.84 kB / 0.5633 GB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.85e-05/0.6942, allocations: 0 / 0.5633 GB, free: 8.926 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.926e-05/0.6942, allocations: 37.94 kB / 0.5633 GB, free: 8.883 MB / 394.7 MB Notification: Performance of pre-optimization done (n=19): time 9.82e-07/0.6943, allocations: 0 / 0.5633 GB, free: 8.883 MB / 394.7 MB Notification: Performance of matching and sorting (n=20): time 0.0007434/0.695, allocations: 468.9 kB / 0.5637 GB, free: 8.375 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.695, allocations: 59.41 kB / 0.5638 GB, free: 8.305 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001794/0.6952, allocations: 204.2 kB / 0.564 GB, free: 8.098 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 1.633e-05/0.6952, allocations: 25.7 kB / 0.564 GB, free: 8.066 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.253e-05/0.6953, allocations: 120.5 kB / 0.5641 GB, free: 7.945 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.724e-05/0.6954, allocations: 66.92 kB / 0.5642 GB, free: 7.879 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.246e-06/0.6954, allocations: 0 / 0.5642 GB, free: 7.879 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.389e-05/0.6955, allocations: 338.8 kB / 0.5645 GB, free: 7.539 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.671e-05/0.6956, allocations: 40.75 kB / 0.5646 GB, free: 7.5 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.938e-05/0.6957, allocations: 65.7 kB / 0.5646 GB, free: 7.43 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001022/0.6958, allocations: 54 kB / 0.5647 GB, free: 7.383 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.11e-07/0.6958, allocations: 0 / 0.5647 GB, free: 7.383 MB / 394.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002601/0.696, allocations: 170.6 kB / 0.5648 GB, free: 7.211 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.521e-05/0.6961, allocations: 7.984 kB / 0.5648 GB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.418e-06/0.6961, allocations: 0 / 0.5648 GB, free: 7.203 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.055e-05/0.6961, allocations: 4 kB / 0.5648 GB, free: 7.199 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00043/0.6965, allocations: 80.64 kB / 0.5649 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.263e-06/0.6965, allocations: 0 / 0.5649 GB, free: 7.121 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001571/0.6967, allocations: 15.89 kB / 0.5649 GB, free: 7.105 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.587e-05/0.6967, allocations: 8 kB / 0.5649 GB, free: 7.098 MB / 394.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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 6.581e-05/0.6968, allocations: 108.9 kB / 0.565 GB, free: 6.984 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.775e-05/0.6969, allocations: 23.72 kB / 0.5651 GB, free: 6.961 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002896/0.6971, allocations: 168.7 kB / 0.5652 GB, free: 6.793 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.158e-06/0.6972, allocations: 6.062 kB / 0.5652 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.6972, allocations: 0 / 0.5652 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.817e-06/0.6972, allocations: 0 / 0.5652 GB, free: 6.789 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005891/0.6978, allocations: 495.6 kB / 0.5657 GB, free: 6.262 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.825e-06/0.6978, allocations: 3.984 kB / 0.5657 GB, free: 6.258 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003991/0.6982, allocations: 71.89 kB / 0.5658 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.436e-06/0.6982, allocations: 0 / 0.5658 GB, free: 6.188 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.747e-05/0.6982, allocations: 8 kB / 0.5658 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.6982, allocations: 0 / 0.5658 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.843e-06/0.6982, allocations: 0 / 0.5658 GB, free: 6.18 MB / 394.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003547/0.6986, allocations: 320 kB / 0.5661 GB, free: 5.852 MB / 394.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.000505/0.6991, allocations: 0.752 MB / 0.5668 GB, free: 5.082 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.413e-05/0.6992, allocations: 110.2 kB / 0.5669 GB, free: 4.957 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.781e-05/0.6993, allocations: 4 kB / 0.5669 GB, free: 4.953 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.6994, allocations: 7.984 kB / 0.5669 GB, free: 4.945 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.859e-05/0.6995, allocations: 19.98 kB / 0.567 GB, free: 4.926 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.063e-05/0.6995, allocations: 4.219 kB / 0.567 GB, free: 4.922 MB / 394.7 MB Notification: Performance of sort global known variables: time 0.0001216/0.6996, allocations: 164.4 kB / 0.5671 GB, free: 4.762 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.000808/0.7004, allocations: 47.94 kB / 0.5672 GB, free: 4.715 MB / 394.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (generator.phi,generator.omega_m,generator.omega_e_filt,grid.port.theta) * Number of discrete variables: 1 (Breaker1.closed) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 21 * 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 Backend phase and start with SimCode phase: time 0.0001202/0.7006, allocations: 106.2 kB / 0.5673 GB, free: 4.605 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.000218/0.7008, allocations: 124.9 kB / 0.5674 GB, free: 4.484 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 1.343e-06/0.7008, allocations: 0 / 0.5674 GB, free: 4.484 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 9.438e-05/0.7009, allocations: 65.25 kB / 0.5675 GB, free: 4.422 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002838/0.7012, allocations: 32.47 kB / 0.5675 GB, free: 4.391 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009557/0.7022, allocations: 0.5097 MB / 0.568 GB, free: 3.867 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003703/0.7025, allocations: 0.7928 MB / 0.5688 GB, free: 3.055 MB / 394.7 MB Notification: Performance of SimCode: time 2.5e-07/0.7025, allocations: 0 / 0.5688 GB, free: 3.055 MB / 394.7 MB (rm -f ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; mkfifo ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe ; head -c 1048576 < ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe >> ../files/ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 ThermoPower_ThermoPower_Test_ElectricalComponents_TestElectrical3.fmu > ThermoPower_ThermoPower.Test.ElectricalComponents.TestElectrical3.pipe 2>&1)