Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.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.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.VariablesTypes.ComplexCalculation,fileNamePrefix="HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation",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.005761/0.005762, allocations: 180.2 kB / 7.458 MB, free: 2.5 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.07317/0.07317, allocations: 8.707 MB / 16.58 MB, free: 0.4961 MB / 10.45 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.332/2.332, allocations: 221.4 MB / 240.5 MB, free: 8.199 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.001593/0.001592, allocations: 86.83 kB / 293.5 MB, free: 5.492 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2173/0.219, allocations: 58.68 MB / 352.2 MB, free: 10.77 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5425/0.7615, allocations: 52.54 MB / 404.7 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1985/0.9601, allocations: 77.1 MB / 481.8 MB, free: 13.52 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003334/0.9606, allocations: 63.97 kB / 481.9 MB, free: 13.46 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.01352/0.9741, allocations: 3.179 MB / 485.1 MB, free: 10.22 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001008/0.9743, allocations: 12 kB / 485.1 MB, free: 10.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.272e-05/0.9743, allocations: 3.906 kB / 485.1 MB, free: 10.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002686/0.9746, allocations: 171.9 kB / 485.2 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.9747, allocations: 0 / 485.2 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.973e-05/0.9747, allocations: 0 / 485.2 MB, free: 9.996 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002498/0.975, allocations: 36.77 kB / 485.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000204/0.9752, allocations: 50.62 kB / 485.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.506e-05/0.9752, allocations: 0 / 485.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.121e-05/0.9753, allocations: 0 / 485.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.9753, allocations: 0.5938 kB / 485.3 MB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004003/0.9757, allocations: 170.8 kB / 485.5 MB, free: 9.703 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002267/0.9759, allocations: 61.33 kB / 485.6 MB, free: 9.637 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001025/0.9761, allocations: 24.98 kB / 485.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.421e-05/0.9761, allocations: 0 / 485.6 MB, free: 9.609 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.349e-05/0.9762, allocations: 38.56 kB / 485.6 MB, free: 9.562 MB / 362.7 MB Notification: Performance of pre-optimization done (n=6): time 1.522e-06/0.9762, allocations: 0 / 485.6 MB, free: 9.562 MB / 362.7 MB Notification: Performance of matching and sorting (n=6): time 0.0004519/0.9766, allocations: 71.47 kB / 485.7 MB, free: 9.488 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.9767, allocations: 55.53 kB / 485.7 MB, free: 9.422 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001514/0.9769, allocations: 93 kB / 485.8 MB, free: 9.324 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.291e-05/0.9769, allocations: 29.64 kB / 485.9 MB, free: 9.289 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.788e-05/0.977, allocations: 92.12 kB / 486 MB, free: 9.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.376e-05/0.9771, allocations: 11.81 kB / 486 MB, free: 9.184 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.969e-06/0.9771, allocations: 0 / 486 MB, free: 9.184 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0003165/0.9775, allocations: 318.8 kB / 486.3 MB, free: 8.863 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.26e-05/0.9776, allocations: 20 kB / 486.3 MB, free: 8.844 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001046/0.9777, allocations: 19.88 kB / 486.3 MB, free: 8.824 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.726e-05/0.9778, allocations: 16.44 kB / 486.3 MB, free: 8.809 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.175e-06/0.9778, allocations: 3.906 kB / 486.3 MB, free: 8.805 MB / 362.7 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0002852/0.9781, allocations: 81.69 kB / 486.4 MB, free: 8.719 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.486e-05/0.9781, allocations: 4 kB / 486.4 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.112e-05/0.9782, allocations: 0 / 486.4 MB, free: 8.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.932e-05/0.9782, allocations: 4 kB / 486.4 MB, free: 8.711 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002545/0.9785, allocations: 11.98 kB / 486.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.9785, allocations: 0 / 486.4 MB, free: 8.699 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.628e-05/0.9786, allocations: 3.906 kB / 486.4 MB, free: 8.695 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.452e-05/0.9786, allocations: 0 / 486.4 MB, free: 8.695 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 (6): * Single equations (assignments): 6 * 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.0001544/0.9788, allocations: 105 kB / 486.5 MB, free: 8.586 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.726e-05/0.9788, allocations: 7.906 kB / 486.6 MB, free: 8.578 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003889/0.9792, allocations: 97.98 kB / 486.6 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.683e-06/0.9793, allocations: 0 / 486.6 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.687e-06/0.9793, allocations: 0 / 486.6 MB, free: 8.477 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.069e-05/0.9793, allocations: 3.984 kB / 486.7 MB, free: 8.473 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002767/0.9796, allocations: 166 kB / 486.8 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.863e-06/0.9796, allocations: 0 / 486.8 MB, free: 8.273 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001506/0.9798, allocations: 15.98 kB / 486.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.018e-06/0.9798, allocations: 0 / 486.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.74e-05/0.9798, allocations: 0 / 486.8 MB, free: 8.258 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.542e-06/0.9798, allocations: 4 kB / 486.8 MB, free: 8.254 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.408e-06/0.9798, allocations: 4 kB / 486.8 MB, free: 8.25 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002746/0.9801, allocations: 109 kB / 486.9 MB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005264/0.9807, allocations: 489.4 kB / 487.4 MB, free: 7.625 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.915e-05/0.9808, allocations: 81.02 kB / 487.5 MB, free: 7.527 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.23e-05/0.9808, allocations: 7.938 kB / 487.5 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.179e-05/0.9809, allocations: 0 / 487.5 MB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.297e-05/0.981, allocations: 7.984 kB / 487.5 MB, free: 7.512 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.054e-05/0.981, allocations: 0 / 487.5 MB, free: 7.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 8.239e-05/0.9811, allocations: 83.34 kB / 487.6 MB, free: 7.43 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001544/0.9826, allocations: 19.91 kB / 487.6 MB, free: 7.41 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 (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 Backend phase and start with SimCode phase: time 0.0002701/0.9829, allocations: 119.3 kB / 487.7 MB, free: 7.285 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002301/0.9832, allocations: 51.98 kB / 487.8 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.544e-06/0.9832, allocations: 0 / 487.8 MB, free: 7.234 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.589e-05/0.9833, allocations: 28 kB / 487.8 MB, free: 7.207 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001956/0.9835, allocations: 7.938 kB / 487.8 MB, free: 7.199 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005196/0.984, allocations: 83.78 kB / 487.9 MB, free: 7.094 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005922/0.9846, allocations: 0.7035 MB / 488.6 MB, free: 6.363 MB / 362.7 MB Notification: Performance of SimCode: time 5.21e-07/0.9846, allocations: 0 / 488.6 MB, free: 6.363 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; mkfifo HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe ; head -c 1048576 < HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe >> ../files/HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_VariablesTypes_ComplexCalculation.fmu > HanserModelica_HanserModelica.VariablesTypes.ComplexCalculation.pipe 2>&1)