Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical4.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.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical4,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical4",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.009346/0.009345, allocations: 178.2 kB / 7.455 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06738/0.06738, allocations: 8.71 MB / 16.58 MB, free: 424 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.296/2.296, allocations: 221.4 MB / 240.5 MB, free: 8.207 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.001447/0.001447, allocations: 86.47 kB / 293.5 MB, free: 5.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2479/0.2494, allocations: 58.68 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5731/0.8226, allocations: 52.53 MB / 404.7 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.182/1.005, allocations: 77.92 MB / 482.6 MB, free: 12.78 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002924/1.005, allocations: 63.97 kB / 482.7 MB, free: 12.72 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: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.008791/1.014, allocations: 2.111 MB / 484.8 MB, free: 10.59 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.862e-05/1.014, allocations: 13.98 kB / 484.8 MB, free: 10.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.404e-05/1.014, allocations: 15.81 kB / 484.8 MB, free: 10.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/1.015, allocations: 190.8 kB / 485 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.678e-05/1.015, allocations: 4 kB / 485 MB, free: 10.33 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.683e-05/1.015, allocations: 12 kB / 485 MB, free: 10.32 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002196/1.015, allocations: 55.94 kB / 485.1 MB, free: 10.26 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002524/1.015, allocations: 81.67 kB / 485.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.817e-05/1.015, allocations: 0 / 485.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/1.015, allocations: 0 / 485.2 MB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.208e-05/1.015, allocations: 4 kB / 485.2 MB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001137/1.016, allocations: 470.7 kB / 485.6 MB, free: 9.66 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001228/1.017, allocations: 37.66 kB / 485.7 MB, free: 9.617 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.991e-05/1.017, allocations: 16.86 kB / 485.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/1.017, allocations: 0 / 485.7 MB, free: 9.598 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.784e-05/1.017, allocations: 34.56 kB / 485.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.863e-06/1.017, allocations: 0 / 485.7 MB, free: 9.555 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003051/1.017, allocations: 49.69 kB / 485.8 MB, free: 9.5 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.868e-05/1.017, allocations: 55.41 kB / 485.8 MB, free: 9.434 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002161/1.017, allocations: 121.2 kB / 485.9 MB, free: 9.305 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.482e-05/1.017, allocations: 25.7 kB / 486 MB, free: 9.273 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001201/1.018, allocations: 123.6 kB / 486.1 MB, free: 9.148 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.829e-05/1.018, allocations: 11.89 kB / 486.1 MB, free: 9.137 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.841e-06/1.018, allocations: 0 / 486.1 MB, free: 9.137 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002981/1.018, allocations: 318.8 kB / 486.4 MB, free: 8.816 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.405e-05/1.018, allocations: 12 kB / 486.4 MB, free: 8.805 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.635e-05/1.018, allocations: 42.42 kB / 486.5 MB, free: 8.754 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.475e-05/1.018, allocations: 20 kB / 486.5 MB, free: 8.734 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/1.018, allocations: 0 / 486.5 MB, free: 8.734 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002039/1.018, allocations: 73.53 kB / 486.5 MB, free: 8.656 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.545e-05/1.018, allocations: 4 kB / 486.6 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.147e-05/1.018, allocations: 0 / 486.6 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.974e-05/1.018, allocations: 0 / 486.6 MB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001784/1.019, allocations: 15.98 kB / 486.6 MB, free: 8.637 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.11e-05/1.019, allocations: 4 kB / 486.6 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.948e-05/1.019, allocations: 3.938 kB / 486.6 MB, free: 8.629 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.621e-05/1.019, allocations: 7.969 kB / 486.6 MB, free: 8.621 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 8 * 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.0001459/1.019, allocations: 105 kB / 486.7 MB, free: 8.512 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.274e-05/1.019, allocations: 7.906 kB / 486.7 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.452e-05/1.019, allocations: 8.047 kB / 486.7 MB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.13e-05/1.019, allocations: 7.984 kB / 486.7 MB, free: 8.488 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.216e-06/1.019, allocations: 3.938 kB / 486.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/1.019, allocations: 0 / 486.7 MB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002976/1.019, allocations: 166.2 kB / 486.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/1.019, allocations: 0 / 486.9 MB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001202/1.02, allocations: 15.89 kB / 486.9 MB, free: 8.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/1.02, allocations: 4 kB / 486.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.216e-05/1.02, allocations: 0 / 486.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.826e-06/1.02, allocations: 64 / 486.9 MB, free: 8.266 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.163e-06/1.02, allocations: 4 kB / 486.9 MB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002788/1.02, allocations: 155.5 kB / 487 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004396/1.02, allocations: 0.5429 MB / 487.6 MB, free: 7.531 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.399e-05/1.021, allocations: 85.09 kB / 487.7 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.023e-05/1.021, allocations: 0 / 487.7 MB, free: 7.43 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001347/1.021, allocations: 4 kB / 487.7 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.874e-05/1.021, allocations: 0 / 487.7 MB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.401e-05/1.021, allocations: 8 kB / 487.7 MB, free: 7.418 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001009/1.021, allocations: 103.1 kB / 487.8 MB, free: 7.316 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001438/1.022, allocations: 19.94 kB / 487.8 MB, free: 7.297 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (inductor.i) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0002633/1.023, allocations: 103.2 kB / 487.9 MB, free: 7.188 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001648/1.023, allocations: 31.92 kB / 487.9 MB, free: 7.156 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.646e-06/1.023, allocations: 0 / 487.9 MB, free: 7.156 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.999e-05/1.023, allocations: 12 kB / 488 MB, free: 7.145 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003574/1.023, allocations: 7.938 kB / 488 MB, free: 7.137 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00073/1.024, allocations: 172.5 kB / 488.1 MB, free: 6.945 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004932/1.024, allocations: 0.711 MB / 488.8 MB, free: 6.211 MB / 362.7 MB Notification: Performance of SimCode: time 3.206e-06/1.024, allocations: 0 / 488.8 MB, free: 6.211 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical4.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical4_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical4.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical4.pipe 2>&1)