Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.FirstSteps.Electrical1.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.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.FirstSteps.Electrical1,fileNamePrefix="HanserModelica_HanserModelica_FirstSteps_Electrical1",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.0042/0.0042, allocations: 181 kB / 7.459 MB, free: 2.164 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.06995/0.06995, allocations: 8.709 MB / 16.58 MB, free: 392 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.261/2.261, 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.001499/0.001499, allocations: 100.3 kB / 293.5 MB, free: 5.469 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.234/0.2356, allocations: 58.66 MB / 352.2 MB, free: 10.75 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5337/0.7693, allocations: 52.54 MB / 404.7 MB, free: 26.74 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1714/0.9408, allocations: 75.35 MB / 480.1 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002941/0.9412, allocations: 59.97 kB / 480.1 MB, free: 15.21 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.001531/0.9427, allocations: 443.6 kB / 480.6 MB, free: 14.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.983e-05/0.9428, allocations: 8 kB / 480.6 MB, free: 14.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.934e-05/0.9429, allocations: 7.906 kB / 480.6 MB, free: 14.72 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002136/0.9431, allocations: 159.8 kB / 480.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.9431, allocations: 0 / 480.7 MB, free: 14.53 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.377e-05/0.9432, allocations: 5.594 kB / 480.7 MB, free: 14.52 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001055/0.9433, allocations: 11.98 kB / 480.7 MB, free: 14.51 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001086/0.9434, allocations: 29.7 kB / 480.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.091e-05/0.9434, allocations: 0.5 kB / 480.8 MB, free: 14.48 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.904e-05/0.9435, allocations: 3.906 kB / 480.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.9435, allocations: 0.7188 kB / 480.8 MB, free: 14.47 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002449/0.9437, allocations: 134.9 kB / 480.9 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.055e-05/0.9438, allocations: 30.78 kB / 480.9 MB, free: 14.27 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.626e-05/0.9439, allocations: 9.766 kB / 480.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.477e-05/0.9439, allocations: 0 / 480.9 MB, free: 14.26 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.9439, allocations: 35.28 kB / 481 MB, free: 14.21 MB / 362.7 MB Notification: Performance of pre-optimization done (n=3): time 1.603e-06/0.9439, allocations: 0.9375 kB / 481 MB, free: 14.21 MB / 362.7 MB Notification: Performance of matching and sorting (n=3): time 0.000164/0.9441, allocations: 45.61 kB / 481 MB, free: 14.16 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.087e-05/0.9442, allocations: 53.19 kB / 481.1 MB, free: 14.1 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.65e-05/0.9442, allocations: 88.98 kB / 481.2 MB, free: 14.01 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.9443, allocations: 29.7 kB / 481.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.527e-05/0.9443, allocations: 80.14 kB / 481.3 MB, free: 13.89 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.916e-05/0.9444, allocations: 12.66 kB / 481.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.917e-06/0.9444, allocations: 0 / 481.3 MB, free: 13.88 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001751/0.9446, allocations: 311.8 kB / 481.6 MB, free: 13.57 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.966e-05/0.9446, allocations: 16.33 kB / 481.6 MB, free: 13.55 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.64e-05/0.9447, allocations: 4 kB / 481.6 MB, free: 13.55 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.903e-05/0.9447, allocations: 8.312 kB / 481.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.965e-06/0.9447, allocations: 0.625 kB / 481.6 MB, free: 13.54 MB / 362.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001141/0.9449, allocations: 50.72 kB / 481.7 MB, free: 13.49 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.109e-05/0.9449, allocations: 4 kB / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.263e-05/0.9449, allocations: 3.984 kB / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.154e-05/0.9449, allocations: 4.844 kB / 481.7 MB, free: 13.48 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001468/0.9451, allocations: 8 kB / 481.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.9451, allocations: 0 / 481.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.9452, allocations: 1 kB / 481.7 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.282e-06/0.9452, allocations: 7.938 kB / 481.7 MB, free: 13.46 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 8.272e-05/0.9453, allocations: 105.7 kB / 481.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.614e-05/0.9453, allocations: 0.75 kB / 481.8 MB, free: 13.35 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.448e-05/0.9453, allocations: 7.625 kB / 481.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.739e-06/0.9453, allocations: 4.5 kB / 481.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.967e-06/0.9454, allocations: 5.766 kB / 481.8 MB, free: 13.34 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.773e-06/0.9454, allocations: 3.906 kB / 481.8 MB, free: 13.33 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001152/0.9455, allocations: 134.2 kB / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.9455, allocations: 0 / 482 MB, free: 13.16 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.588e-05/0.9456, allocations: 11.98 kB / 482 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.823e-06/0.9456, allocations: 2.75 kB / 482 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.586e-06/0.9456, allocations: 0 / 482 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.9456, allocations: 0 / 482 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.9456, allocations: 3.984 kB / 482 MB, free: 13.15 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001367/0.9458, allocations: 81.03 kB / 482.1 MB, free: 13.05 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002757/0.9461, allocations: 465.5 kB / 482.5 MB, free: 12.57 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.896e-05/0.9461, allocations: 77.11 kB / 482.6 MB, free: 12.48 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.945e-05/0.9462, allocations: 8.078 kB / 482.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 1.861e-05/0.9462, allocations: 0 / 482.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.676e-05/0.9462, allocations: 3.906 kB / 482.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.288e-06/0.9462, allocations: 0 / 482.6 MB, free: 12.47 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.411e-05/0.9463, allocations: 83.34 kB / 482.7 MB, free: 12.39 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007835/0.9471, allocations: 8 kB / 482.7 MB, free: 12.38 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.000179/0.9473, allocations: 91.25 kB / 482.8 MB, free: 12.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 9.877e-05/0.9474, allocations: 15.98 kB / 482.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.384e-06/0.9474, allocations: 4 kB / 482.8 MB, free: 12.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 1.443e-05/0.9474, allocations: 7.938 kB / 482.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001398/0.9476, allocations: 0 / 482.8 MB, free: 12.25 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003206/0.9479, allocations: 80.12 kB / 482.9 MB, free: 12.15 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003997/0.9483, allocations: 0.6954 MB / 483.6 MB, free: 11.43 MB / 362.7 MB Notification: Performance of SimCode: time 4.41e-07/0.9483, allocations: 0 / 483.6 MB, free: 11.43 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; mkfifo HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe ; head -c 1048576 < HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe >> ../files/HanserModelica_HanserModelica.FirstSteps.Electrical1.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_FirstSteps_Electrical1_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_FirstSteps_Electrical1.fmu > HanserModelica_HanserModelica.FirstSteps.Electrical1.pipe 2>&1)