Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Electrical.TestBrush.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.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Electrical.TestBrush,fileNamePrefix="HanserModelica_HanserModelica_Electrical_TestBrush",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.004643/0.004643, allocations: 187 kB / 7.46 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.07293/0.07293, allocations: 8.709 MB / 16.57 MB, free: 440 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.278/2.278, allocations: 221.4 MB / 240.5 MB, free: 8.141 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.00121/0.00121, allocations: 109.9 kB / 293.5 MB, free: 5.465 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2395/0.2408, allocations: 58.66 MB / 352.2 MB, free: 10.76 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4835/0.7243, allocations: 52.54 MB / 404.7 MB, free: 26.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1521/0.8765, allocations: 78.12 MB / 482.8 MB, free: 12.49 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004051/0.8771, allocations: 63.97 kB / 482.9 MB, free: 12.43 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.009124/0.8862, allocations: 2.001 MB / 484.9 MB, free: 10.4 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 8.159e-05/0.8863, allocations: 8 kB / 484.9 MB, free: 10.39 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001019/0.8864, allocations: 15.89 kB / 484.9 MB, free: 10.38 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003066/0.8868, allocations: 179 kB / 485.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.443e-05/0.8868, allocations: 0 / 485.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.776e-05/0.8868, allocations: 4 kB / 485.1 MB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001784/0.887, allocations: 36 kB / 485.1 MB, free: 10.12 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001894/0.8872, allocations: 65.62 kB / 485.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.263e-05/0.8873, allocations: 0 / 485.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.888e-05/0.8873, allocations: 0 / 485.2 MB, free: 10.05 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.8873, allocations: 7.984 kB / 485.2 MB, free: 10.04 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001024/0.8884, allocations: 380 kB / 485.6 MB, free: 9.625 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 9.31e-05/0.8885, allocations: 26.58 kB / 485.6 MB, free: 9.59 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.71e-05/0.8885, allocations: 12.92 kB / 485.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.316e-05/0.8886, allocations: 0 / 485.6 MB, free: 9.574 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.133e-05/0.8886, allocations: 34.5 kB / 485.6 MB, free: 9.531 MB / 362.7 MB Notification: Performance of pre-optimization done (n=2): time 6.212e-06/0.8886, allocations: 7.984 kB / 485.6 MB, free: 9.523 MB / 362.7 MB Notification: Performance of matching and sorting (n=2): time 0.0003784/0.889, allocations: 53.59 kB / 485.7 MB, free: 9.465 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.8891, allocations: 51.41 kB / 485.8 MB, free: 9.402 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001705/0.8893, allocations: 112.9 kB / 485.9 MB, free: 9.285 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.322e-05/0.8893, allocations: 29.7 kB / 485.9 MB, free: 9.25 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001008/0.8894, allocations: 104 kB / 486 MB, free: 9.145 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.69e-05/0.8895, allocations: 11.84 kB / 486 MB, free: 9.133 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.181e-06/0.8895, allocations: 0 / 486 MB, free: 9.133 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0002085/0.8897, allocations: 318.7 kB / 486.3 MB, free: 8.812 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.384e-05/0.8897, allocations: 12.03 kB / 486.3 MB, free: 8.801 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.253e-05/0.8898, allocations: 26.58 kB / 486.4 MB, free: 8.766 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001156/0.8899, allocations: 19.92 kB / 486.4 MB, free: 8.746 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.966e-06/0.8899, allocations: 0 / 486.4 MB, free: 8.746 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0002115/0.8902, allocations: 61.67 kB / 486.4 MB, free: 8.68 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.487e-05/0.8902, allocations: 4 kB / 486.4 MB, free: 8.676 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.8902, allocations: 4.094 kB / 486.4 MB, free: 8.672 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.619e-05/0.8903, allocations: 7.906 kB / 486.4 MB, free: 8.664 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001944/0.8905, allocations: 19.92 kB / 486.5 MB, free: 8.645 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.777e-06/0.8905, allocations: 3.938 kB / 486.5 MB, free: 8.641 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.8906, allocations: 8 kB / 486.5 MB, free: 8.633 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.114e-05/0.8906, allocations: 4 kB / 486.5 MB, free: 8.629 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 (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.000158/0.8908, allocations: 105 kB / 486.6 MB, free: 8.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.155e-05/0.8909, allocations: 3.906 kB / 486.6 MB, free: 8.516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.048e-05/0.8909, allocations: 15.61 kB / 486.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.306e-06/0.891, allocations: 0 / 486.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.466e-06/0.891, allocations: 0 / 486.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.712e-06/0.891, allocations: 0 / 486.6 MB, free: 8.504 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000301/0.8913, allocations: 162.1 kB / 486.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.015e-06/0.8913, allocations: 0 / 486.8 MB, free: 8.309 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.757e-05/0.8914, allocations: 12 kB / 486.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.651e-06/0.8914, allocations: 0 / 486.8 MB, free: 8.297 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.686e-05/0.8915, allocations: 4 kB / 486.8 MB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.259e-06/0.8915, allocations: 3.984 kB / 486.8 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.798e-06/0.8915, allocations: 0 / 486.8 MB, free: 8.289 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002967/0.8918, allocations: 155.4 kB / 486.9 MB, free: 8.121 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005156/0.8923, allocations: 0.5116 MB / 487.4 MB, free: 7.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.32e-05/0.8924, allocations: 85 kB / 487.5 MB, free: 7.488 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.25e-05/0.8925, allocations: 4 kB / 487.5 MB, free: 7.484 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001491/0.8926, allocations: 8.062 kB / 487.5 MB, free: 7.477 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.1e-05/0.8927, allocations: 7.922 kB / 487.5 MB, free: 7.469 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.43e-06/0.8927, allocations: 4 kB / 487.6 MB, free: 7.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001306/0.8929, allocations: 95.66 kB / 487.6 MB, free: 7.371 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.00132/0.8942, allocations: 23.84 kB / 487.7 MB, free: 7.348 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (2): * Single equations (assignments): 2 * 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.0004505/0.8947, allocations: 103.2 kB / 487.8 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000173/0.8948, allocations: 23.94 kB / 487.8 MB, free: 7.211 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.001e-05/0.8949, allocations: 4.188 kB / 487.8 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.856e-05/0.8949, allocations: 8 kB / 487.8 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000369/0.8953, allocations: 4 kB / 487.8 MB, free: 7.195 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005724/0.8959, allocations: 91.61 kB / 487.9 MB, free: 7.078 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007228/0.8966, allocations: 0.7036 MB / 488.6 MB, free: 6.348 MB / 362.7 MB Notification: Performance of SimCode: time 6.91e-07/0.8966, allocations: 0 / 488.6 MB, free: 6.348 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; mkfifo HanserModelica_HanserModelica.Electrical.TestBrush.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Electrical.TestBrush.pipe >> ../files/HanserModelica_HanserModelica.Electrical.TestBrush.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Electrical_TestBrush_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Electrical_TestBrush.fmu > HanserModelica_HanserModelica.Electrical.TestBrush.pipe 2>&1)