Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.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.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer7over9,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9",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.007669/0.00767, allocations: 182.9 kB / 7.461 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.07423/0.07423, allocations: 8.711 MB / 16.58 MB, free: 444 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.405/2.405, allocations: 221.4 MB / 240.5 MB, free: 8.273 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.001187/0.001187, allocations: 100.6 kB / 293.5 MB, free: 5.504 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.1946/0.1959, allocations: 58.67 MB / 352.2 MB, free: 10.79 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5052/0.7011, allocations: 52.55 MB / 404.7 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1729/0.8741, allocations: 79.67 MB / 484.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004238/0.8747, allocations: 64.75 kB / 484.4 MB, free: 10.89 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: 0 * Number of variables: 0 Notification: Performance of Generate backend data structure: time 0.03332/0.908, allocations: 9.653 MB / 494.1 MB, free: 1.172 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.634e-05/0.9081, allocations: 8 kB / 494.1 MB, free: 1.164 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000533/0.9086, allocations: 107.1 kB / 494.2 MB, free: 1.059 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003/0.9117, allocations: 0.7596 MB / 495 MB, free: 260 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001437/0.9118, allocations: 158.5 kB / 495.1 MB, free: 100 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001579/0.912, allocations: 154.6 kB / 495.3 MB, free: 15.95 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001096/0.9121, allocations: 150.6 kB / 495.4 MB, free: 15.8 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.9e-05/0.9123, allocations: 101 kB / 495.5 MB, free: 15.69 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.623e-05/0.9123, allocations: 75.28 kB / 495.6 MB, free: 15.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.021e-05/0.9124, allocations: 154.6 kB / 495.7 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001024/0.9125, allocations: 158.5 kB / 495.9 MB, free: 15.31 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004609/0.913, allocations: 442.5 kB / 496.3 MB, free: 14.84 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001023/0.9131, allocations: 173.1 kB / 496.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.635e-05/0.9132, allocations: 80.14 kB / 496.6 MB, free: 14.58 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.54e-05/0.9132, allocations: 79.28 kB / 496.7 MB, free: 14.5 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.144e-05/0.9133, allocations: 105.8 kB / 496.8 MB, free: 14.39 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 3.526e-06/0.9133, allocations: 0 / 496.8 MB, free: 14.39 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001011/0.9134, allocations: 37.55 kB / 496.8 MB, free: 14.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.059e-05/0.9134, allocations: 51.41 kB / 496.9 MB, free: 14.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001811/0.9136, allocations: 138.9 kB / 497 MB, free: 14.14 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.901e-05/0.9136, allocations: 29.64 kB / 497 MB, free: 14.11 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.679e-05/0.9137, allocations: 96.12 kB / 497.1 MB, free: 14.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.695e-06/0.9137, allocations: 3.938 kB / 497.1 MB, free: 14 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.6e-07/0.9137, allocations: 0 / 497.1 MB, free: 14 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001674/0.9139, allocations: 326.7 kB / 497.4 MB, free: 13.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.068e-06/0.9139, allocations: 0 / 497.4 MB, free: 13.68 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.21e-06/0.9139, allocations: 0 / 497.4 MB, free: 13.68 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.19e-05/0.914, allocations: 75.28 kB / 497.5 MB, free: 13.6 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.427e-05/0.914, allocations: 75.28 kB / 497.6 MB, free: 13.53 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 7.75e-05/0.9141, allocations: 37.61 kB / 497.6 MB, free: 13.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.9141, allocations: 8 kB / 497.6 MB, free: 13.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.325e-05/0.9142, allocations: 79.28 kB / 497.7 MB, free: 13.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.968e-05/0.9143, allocations: 154.5 kB / 497.9 MB, free: 13.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.461e-05/0.9144, allocations: 79.27 kB / 497.9 MB, free: 13.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.566e-05/0.9145, allocations: 154.6 kB / 498.1 MB, free: 13.02 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001133/0.9146, allocations: 79.22 kB / 498.2 MB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.337e-05/0.9146, allocations: 83.28 kB / 498.2 MB, free: 12.86 MB / 378.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 (0): * Single equations (assignments): 0 * 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.0001606/0.9148, allocations: 251.5 kB / 498.5 MB, free: 12.6 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001465/0.9149, allocations: 117 kB / 498.6 MB, free: 12.48 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.33e-05/0.915, allocations: 120.6 kB / 498.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.822e-05/0.9151, allocations: 180.3 kB / 498.9 MB, free: 12.17 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001053/0.9153, allocations: 180.3 kB / 499.1 MB, free: 11.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.281e-05/0.9154, allocations: 180.2 kB / 499.2 MB, free: 11.8 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003419/0.9157, allocations: 401.8 kB / 499.6 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.403e-05/0.9158, allocations: 101 kB / 499.7 MB, free: 11.26 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.304e-05/0.9159, allocations: 105.9 kB / 499.8 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001287/0.916, allocations: 176.3 kB / 0.4883 GB, free: 10.97 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001415/0.9162, allocations: 188.2 kB / 0.4885 GB, free: 10.78 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001172/0.9163, allocations: 184.1 kB / 0.4886 GB, free: 10.59 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001307/0.9164, allocations: 176.3 kB / 0.4888 GB, free: 10.41 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002875/0.9167, allocations: 312 kB / 0.4891 GB, free: 10.09 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0006308/0.9174, allocations: 0.6914 MB / 0.4898 GB, free: 9.367 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001696/0.9176, allocations: 182 kB / 0.49 GB, free: 9.164 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001815/0.9178, allocations: 192.2 kB / 0.4901 GB, free: 8.969 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002017/0.918, allocations: 108.9 kB / 0.4902 GB, free: 8.855 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000204/0.9182, allocations: 184.3 kB / 0.4904 GB, free: 8.668 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001199/0.9183, allocations: 101 kB / 0.4905 GB, free: 8.562 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0003327/0.9187, allocations: 120.1 kB / 0.4906 GB, free: 8.445 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001622/0.9203, allocations: 12 kB / 0.4906 GB, free: 8.434 MB / 378.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 (0): * Single equations (assignments): 0 * 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.000533/0.9209, allocations: 209.2 kB / 0.4908 GB, free: 8.223 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 9.865e-05/0.921, allocations: 3.938 kB / 0.4909 GB, free: 8.219 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.59e-06/0.921, allocations: 0 / 0.4909 GB, free: 8.219 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.679e-06/0.9211, allocations: 0 / 0.4909 GB, free: 8.219 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001028/0.9221, allocations: 0.5418 MB / 0.4914 GB, free: 7.672 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006502/0.9228, allocations: 174.9 kB / 0.4915 GB, free: 7.477 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005934/0.9234, allocations: 0.7075 MB / 0.4922 GB, free: 6.742 MB / 378.7 MB Notification: Performance of SimCode: time 3.81e-07/0.9234, allocations: 0 / 0.4922 GB, free: 6.742 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer7over9.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer7over9.pipe 2>&1)