Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical5.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.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical5,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical5",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.005192/0.005192, allocations: 182.6 kB / 7.458 MB, free: 2.516 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07225/0.07225, allocations: 8.705 MB / 16.57 MB, free: 436 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.321/2.321, allocations: 221.4 MB / 240.5 MB, free: 8.219 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.001342/0.001342, allocations: 98.55 kB / 293.5 MB, free: 5.496 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2543/0.2557, allocations: 58.66 MB / 352.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5891/0.8448, allocations: 52.54 MB / 404.7 MB, free: 26.77 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1954/1.04, allocations: 77.95 MB / 482.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003948/1.041, allocations: 68.53 kB / 482.7 MB, free: 12.64 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.008477/1.049, allocations: 2.23 MB / 485 MB, free: 10.38 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.535e-05/1.049, allocations: 12 kB / 485 MB, free: 10.37 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001285/1.05, allocations: 11.81 kB / 485 MB, free: 10.36 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003207/1.05, allocations: 199 kB / 485.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.349e-05/1.05, allocations: 0 / 485.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.496e-05/1.05, allocations: 8 kB / 485.2 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001726/1.05, allocations: 55.98 kB / 485.2 MB, free: 10.06 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002111/1.05, allocations: 77.69 kB / 485.3 MB, free: 9.98 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.321e-05/1.05, allocations: 4 kB / 485.3 MB, free: 9.977 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.265e-05/1.05, allocations: 3.984 kB / 485.3 MB, free: 9.973 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.114e-05/1.05, allocations: 4 kB / 485.3 MB, free: 9.969 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001133/1.052, allocations: 470.7 kB / 485.8 MB, free: 9.457 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.968e-05/1.052, allocations: 29.72 kB / 485.8 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.608e-05/1.052, allocations: 16.94 kB / 485.8 MB, free: 9.402 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.496e-05/1.052, allocations: 4 kB / 485.8 MB, free: 9.398 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.08e-05/1.052, allocations: 42.55 kB / 485.9 MB, free: 9.348 MB / 362.7 MB Notification: Performance of pre-optimization done (n=4): time 1.913e-06/1.052, allocations: 0 / 485.9 MB, free: 9.348 MB / 362.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002308/1.052, allocations: 53.53 kB / 485.9 MB, free: 9.289 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.312e-05/1.052, allocations: 55.41 kB / 486 MB, free: 9.223 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001963/1.052, allocations: 109.2 kB / 486.1 MB, free: 9.105 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.621e-05/1.052, allocations: 25.7 kB / 486.1 MB, free: 9.074 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001168/1.053, allocations: 119.6 kB / 486.2 MB, free: 8.953 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.447e-05/1.053, allocations: 11.91 kB / 486.2 MB, free: 8.941 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.881e-06/1.053, allocations: 7.938 kB / 486.2 MB, free: 8.934 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002307/1.053, allocations: 318.7 kB / 486.6 MB, free: 8.613 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.576e-05/1.053, allocations: 12 kB / 486.6 MB, free: 8.602 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.899e-05/1.053, allocations: 30.58 kB / 486.6 MB, free: 8.562 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.31e-05/1.053, allocations: 12 kB / 486.6 MB, free: 8.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/1.053, allocations: 0 / 486.6 MB, free: 8.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.000209/1.053, allocations: 77.53 kB / 486.7 MB, free: 8.469 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.011e-05/1.053, allocations: 4 kB / 486.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.617e-06/1.053, allocations: 0 / 486.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.108e-05/1.053, allocations: 7.984 kB / 486.7 MB, free: 8.457 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001356/1.053, allocations: 20 kB / 486.7 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.056e-05/1.054, allocations: 0 / 486.7 MB, free: 8.438 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.901e-05/1.054, allocations: 7.875 kB / 486.7 MB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.459e-05/1.054, allocations: 11.91 kB / 486.7 MB, free: 8.418 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.0001031/1.054, allocations: 101 kB / 486.8 MB, free: 8.312 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.725e-05/1.054, allocations: 11.97 kB / 486.8 MB, free: 8.301 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.56e-05/1.054, allocations: 7.984 kB / 486.9 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.913e-06/1.054, allocations: 4 kB / 486.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-06/1.054, allocations: 0 / 486.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.729e-06/1.054, allocations: 0 / 486.9 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002256/1.054, allocations: 162.2 kB / 487 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.173e-06/1.054, allocations: 0 / 487 MB, free: 8.094 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.889e-05/1.054, allocations: 11.91 kB / 487 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.024e-06/1.054, allocations: 0 / 487 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.025e-05/1.054, allocations: 0 / 487 MB, free: 8.082 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.203e-06/1.054, allocations: 4 kB / 487 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/1.054, allocations: 0 / 487 MB, free: 8.078 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002602/1.054, allocations: 163.4 kB / 487.2 MB, free: 7.902 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004296/1.055, allocations: 0.539 MB / 487.7 MB, free: 7.344 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.225e-05/1.055, allocations: 81.02 kB / 487.8 MB, free: 7.246 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.375e-05/1.055, allocations: 4.125 kB / 487.8 MB, free: 7.242 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/1.055, allocations: 4 kB / 487.8 MB, free: 7.238 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.428e-05/1.055, allocations: 4.078 kB / 487.8 MB, free: 7.234 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/1.055, allocations: 4 kB / 487.8 MB, free: 7.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.665e-05/1.055, allocations: 101.1 kB / 487.9 MB, free: 7.133 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009329/1.056, allocations: 19.94 kB / 487.9 MB, free: 7.113 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.0002768/1.057, allocations: 107.1 kB / 488 MB, free: 7 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001477/1.057, allocations: 31.94 kB / 488.1 MB, free: 6.969 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.999e-06/1.057, allocations: 4 kB / 488.1 MB, free: 6.965 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.915e-05/1.057, allocations: 8 kB / 488.1 MB, free: 6.957 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002752/1.057, allocations: 4 kB / 488.1 MB, free: 6.953 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006218/1.058, allocations: 172.6 kB / 488.3 MB, free: 6.762 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005339/1.058, allocations: 0.7233 MB / 489 MB, free: 6.016 MB / 362.7 MB Notification: Performance of SimCode: time 2.7e-07/1.058, allocations: 0 / 489 MB, free: 6.016 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical5.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical5_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical5.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical5.pipe 2>&1)