Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.Signals.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.Electrical.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.Signals,fileNamePrefix="HanserModelica_HanserModelica_Electrical_Signals",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.005523/0.005524, allocations: 181.6 kB / 7.454 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.07409/0.0741, allocations: 8.701 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.296/2.296, allocations: 221.4 MB / 240.5 MB, free: 8.172 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.00163/0.001631, allocations: 107.4 kB / 293.5 MB, free: 5.473 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2419/0.2436, allocations: 58.66 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5387/0.7823, allocations: 52.54 MB / 404.7 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1769/0.9592, allocations: 79.25 MB / 484 MB, free: 11.35 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003963/0.9598, allocations: 63.97 kB / 484 MB, free: 11.29 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: 36 * Number of variables: 36 Notification: Performance of Generate backend data structure: time 0.00988/0.9697, allocations: 2.941 MB / 487 MB, free: 8.316 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.01e-05/0.9698, allocations: 12 kB / 487 MB, free: 8.305 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.411e-05/0.9698, allocations: 15.81 kB / 487 MB, free: 8.289 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004324/0.9703, allocations: 210.7 kB / 487.2 MB, free: 8.043 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.916e-05/0.9703, allocations: 4 kB / 487.2 MB, free: 8.039 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.196e-05/0.9704, allocations: 11.94 kB / 487.2 MB, free: 8.027 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002248/0.9706, allocations: 71.98 kB / 487.3 MB, free: 7.957 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004399/0.971, allocations: 136.7 kB / 487.4 MB, free: 7.805 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.357e-05/0.9711, allocations: 4 kB / 487.4 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.115e-05/0.9711, allocations: 0 / 487.4 MB, free: 7.801 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.586e-05/0.9712, allocations: 4 kB / 487.4 MB, free: 7.797 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001462/0.9726, allocations: 0.7066 MB / 488.1 MB, free: 7.027 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001327/0.9728, allocations: 42.09 kB / 488.2 MB, free: 6.98 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.814e-05/0.9729, allocations: 32.92 kB / 488.2 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.15e-05/0.9729, allocations: 0 / 488.2 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.926e-05/0.9729, allocations: 34.56 kB / 488.2 MB, free: 6.902 MB / 362.7 MB Notification: Performance of pre-optimization done (n=7): time 1.202e-06/0.973, allocations: 3.938 kB / 488.2 MB, free: 6.898 MB / 362.7 MB Notification: Performance of matching and sorting (n=7): time 0.0003049/0.9733, allocations: 73.5 kB / 488.3 MB, free: 6.82 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.372e-05/0.9733, allocations: 51.41 kB / 488.4 MB, free: 6.758 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001858/0.9735, allocations: 137.5 kB / 488.5 MB, free: 6.609 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.102e-05/0.9735, allocations: 25.7 kB / 488.5 MB, free: 6.578 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001073/0.9737, allocations: 131.5 kB / 488.7 MB, free: 6.445 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.341e-05/0.9737, allocations: 19.66 kB / 488.7 MB, free: 6.426 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.3e-06/0.9737, allocations: 0 / 488.7 MB, free: 6.426 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001963/0.9739, allocations: 326.8 kB / 489 MB, free: 6.098 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.831e-05/0.974, allocations: 27.94 kB / 489 MB, free: 6.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.674e-05/0.9741, allocations: 48.3 kB / 489.1 MB, free: 6.008 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.442e-05/0.9741, allocations: 31.89 kB / 489.1 MB, free: 5.977 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.035e-06/0.9741, allocations: 0 / 489.1 MB, free: 5.977 MB / 362.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002331/0.9744, allocations: 113.4 kB / 489.2 MB, free: 5.859 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.102e-05/0.9744, allocations: 4 kB / 489.2 MB, free: 5.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.271e-05/0.9744, allocations: 4 kB / 489.2 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.959e-05/0.9745, allocations: 0 / 489.2 MB, free: 5.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001813/0.9746, allocations: 27.98 kB / 489.2 MB, free: 5.824 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.388e-05/0.9747, allocations: 3.938 kB / 489.2 MB, free: 5.82 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001186/0.9748, allocations: 7.906 kB / 489.3 MB, free: 5.812 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.134e-05/0.9749, allocations: 12.12 kB / 489.3 MB, free: 5.801 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 1 (integrator.local_reset) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001736/0.9751, allocations: 108.9 kB / 489.4 MB, free: 5.688 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.812e-05/0.9751, allocations: 11.81 kB / 489.4 MB, free: 5.676 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.723e-05/0.9752, allocations: 16.48 kB / 489.4 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.879e-06/0.9752, allocations: 0 / 489.4 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.015e-06/0.9753, allocations: 0 / 489.4 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.362e-06/0.9753, allocations: 0 / 489.4 MB, free: 5.656 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002808/0.9756, allocations: 186.2 kB / 489.6 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.72e-07/0.9756, allocations: 0 / 489.6 MB, free: 5.438 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001464/0.9757, allocations: 27.98 kB / 489.6 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.274e-06/0.9757, allocations: 0 / 489.6 MB, free: 5.41 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.396e-05/0.9758, allocations: 3.938 kB / 489.6 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.9758, allocations: 0 / 489.6 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/0.9758, allocations: 0 / 489.6 MB, free: 5.406 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003388/0.9761, allocations: 183.4 kB / 489.8 MB, free: 5.211 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005354/0.9767, allocations: 0.5858 MB / 490.4 MB, free: 4.605 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.883e-05/0.9768, allocations: 92.95 kB / 490.5 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.149e-05/0.9768, allocations: 0 / 490.5 MB, free: 4.496 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001393/0.977, allocations: 7.984 kB / 490.5 MB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.604e-05/0.977, allocations: 4 kB / 490.5 MB, free: 4.484 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.253e-06/0.977, allocations: 0 / 490.5 MB, free: 4.484 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001197/0.9772, allocations: 115.9 kB / 490.6 MB, free: 4.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0009689/0.9781, allocations: 31.84 kB / 490.6 MB, free: 4.34 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inductor.i,integrator.y) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (7): * Single equations (assignments): 7 * 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.0002237/0.9784, allocations: 91.25 kB / 490.7 MB, free: 4.242 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001705/0.9786, allocations: 56.25 kB / 490.8 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.793e-06/0.9786, allocations: 192 / 490.8 MB, free: 4.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.689e-05/0.9786, allocations: 16 kB / 490.8 MB, free: 4.172 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003463/0.979, allocations: 23.98 kB / 490.8 MB, free: 4.148 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000714/0.9797, allocations: 237.1 kB / 491 MB, free: 3.898 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004984/0.9802, allocations: 0.7344 MB / 491.8 MB, free: 3.141 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.9802, allocations: 4 kB / 491.8 MB, free: 3.137 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Electrical.Signals.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.Signals.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.Signals.pipe >> ../files/HanserModelica_HanserModelica.Electrical.Signals.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_Signals_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_Signals.fmu > HanserModelica_HanserModelica.Electrical.Signals.pipe 2>&1)