Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical2.conf.json 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/HanserModelica 2.0.0-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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 HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/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) Running command: "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical2,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical2",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 4.0.0+maint.om/package.mo): time 0.008142/0.008142, allocations: 179.7 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08571/0.08571, allocations: 8.707 MB / 16.58 MB, free: 444 kB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.286/2.286, allocations: 221.4 MB / 240.5 MB, free: 8.203 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001859/0.001859, allocations: 110.3 kB / 293.5 MB, free: 5.508 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2384/0.2404, allocations: 58.65 MB / 352.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5797/0.8201, allocations: 52.54 MB / 404.7 MB, free: 26.78 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1587/0.9789, allocations: 75.35 MB / 480.1 MB, free: 15.31 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003222/0.9793, allocations: 60.62 kB / 480.1 MB, free: 15.25 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.00157/0.9809, allocations: 475.8 kB / 480.6 MB, free: 14.75 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.457e-05/0.981, allocations: 8.906 kB / 480.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.947e-05/0.981, allocations: 7.906 kB / 480.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001693/0.9812, allocations: 159.1 kB / 480.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.5e-05/0.9812, allocations: 0.8125 kB / 480.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.321e-05/0.9813, allocations: 0 / 480.8 MB, free: 14.54 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 7.141e-05/0.9813, allocations: 8.688 kB / 480.8 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.42e-05/0.9814, allocations: 34.34 kB / 480.8 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.009e-05/0.9815, allocations: 0 / 480.8 MB, free: 14.49 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.433e-05/0.9815, allocations: 4.469 kB / 480.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.9815, allocations: 0 / 480.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002491/0.9818, allocations: 132.1 kB / 480.9 MB, free: 14.32 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.955e-05/0.9819, allocations: 33.62 kB / 481 MB, free: 14.28 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.758e-05/0.9819, allocations: 17.8 kB / 481 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.635e-05/0.9819, allocations: 0 / 481 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.627e-05/0.982, allocations: 32.25 kB / 481 MB, free: 14.22 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.673e-06/0.982, allocations: 0 / 481 MB, free: 14.22 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.0002163/0.9822, allocations: 41.69 kB / 481.1 MB, free: 14.18 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.168e-05/0.9823, allocations: 55.91 kB / 481.1 MB, free: 14.11 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001103/0.9824, allocations: 89.84 kB / 481.2 MB, free: 14.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.137e-05/0.9825, allocations: 25.7 kB / 481.2 MB, free: 13.98 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.368e-05/0.9826, allocations: 84.98 kB / 481.3 MB, free: 13.9 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.578e-05/0.9826, allocations: 12.55 kB / 481.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.368e-06/0.9826, allocations: 0 / 481.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002036/0.9828, allocations: 316.9 kB / 481.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.647e-05/0.9829, allocations: 11.33 kB / 481.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.612e-05/0.9829, allocations: 4 kB / 481.6 MB, free: 13.56 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.098e-05/0.9829, allocations: 8 kB / 481.6 MB, free: 13.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.234e-06/0.983, allocations: 1.469 kB / 481.7 MB, free: 13.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.00011/0.9831, allocations: 45.59 kB / 481.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.74e-05/0.9831, allocations: 4 kB / 481.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.943e-06/0.9831, allocations: 0 / 481.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.05e-05/0.9831, allocations: 0.5625 kB / 481.7 MB, free: 13.5 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001517/0.9833, allocations: 15.92 kB / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.9833, allocations: 4.828 kB / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.602e-05/0.9834, allocations: 0 / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.488e-06/0.9834, allocations: 4.781 kB / 481.7 MB, free: 13.47 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * 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 0.0001342/0.9835, allocations: 105.8 kB / 481.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.082e-05/0.9836, allocations: 0 / 481.8 MB, free: 13.36 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.982e-05/0.9836, allocations: 12.56 kB / 481.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.9836, allocations: 3.938 kB / 481.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.9836, allocations: 4.562 kB / 481.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.149e-05/0.9837, allocations: 3.906 kB / 481.9 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001643/0.9838, allocations: 137 kB / 482 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.9839, allocations: 0 / 482 MB, free: 13.17 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.984, allocations: 8 kB / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.575e-06/0.984, allocations: 0 / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.178e-05/0.984, allocations: 0 / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.871e-06/0.984, allocations: 3.984 kB / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.196e-06/0.984, allocations: 0 / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000188/0.9842, allocations: 78.75 kB / 482.1 MB, free: 13.07 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003661/0.9846, allocations: 473.9 kB / 482.5 MB, free: 12.58 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.329e-05/0.9847, allocations: 77.11 kB / 482.6 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.098e-05/0.9847, allocations: 0 / 482.6 MB, free: 12.49 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.667e-05/0.9848, allocations: 4 kB / 482.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.696e-05/0.9848, allocations: 4 kB / 482.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.241e-06/0.9848, allocations: 3.984 kB / 482.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.036e-05/0.9849, allocations: 83.28 kB / 482.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001556/0.9865, allocations: 8 kB / 482.7 MB, free: 12.39 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (3): * Single equations (assignments): 3 * 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.000198/0.9867, allocations: 95.31 kB / 482.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.9e-05/0.9868, allocations: 12 kB / 482.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.9868, allocations: 0 / 482.8 MB, free: 12.27 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.745e-05/0.9868, allocations: 11.94 kB / 482.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001632/0.987, allocations: 0 / 482.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004887/0.9875, allocations: 124.9 kB / 483 MB, free: 12.11 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004268/0.988, allocations: 0.6915 MB / 483.6 MB, free: 11.4 MB / 362.7 MB Notification: Performance of SimCode: time 3.71e-07/0.988, allocations: 3.938 kB / 483.6 MB, free: 11.39 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical2_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical2.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical2.pipe 2>&1)