Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.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.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestSingleLayer12over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestSingleLayer12over12",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.005539/0.005539, allocations: 183.7 kB / 7.459 MB, free: 2.512 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.08225/0.08225, allocations: 8.706 MB / 16.57 MB, free: 448 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.359/2.359, allocations: 221.4 MB / 240.5 MB, free: 8.23 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.001748/0.001748, allocations: 93.33 kB / 293.5 MB, free: 5.516 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2716/0.2734, allocations: 58.67 MB / 352.2 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5656/0.8391, allocations: 52.54 MB / 404.7 MB, free: 26.76 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1901/1.029, allocations: 79.6 MB / 484.3 MB, free: 11.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004008/1.03, allocations: 67.97 kB / 484.4 MB, free: 10.98 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.05069/1.081, allocations: 9.836 MB / 494.2 MB, free: 1.098 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.556e-05/1.081, allocations: 12 kB / 494.2 MB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005398/1.081, allocations: 107.1 kB / 494.3 MB, free: 0.9805 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003667/1.085, allocations: 0.7719 MB / 495.1 MB, free: 164 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.768e-05/1.085, allocations: 150.6 kB / 495.2 MB, free: 12 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001422/1.085, allocations: 150.6 kB / 495.4 MB, free: 15.86 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.971e-05/1.085, allocations: 150.6 kB / 495.5 MB, free: 15.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001065/1.085, allocations: 112.9 kB / 495.7 MB, free: 15.6 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.573e-05/1.086, allocations: 75.28 kB / 495.7 MB, free: 15.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001027/1.086, allocations: 154.6 kB / 495.9 MB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000102/1.086, allocations: 150.6 kB / 496 MB, free: 15.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005477/1.086, allocations: 446.4 kB / 496.5 MB, free: 14.75 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001571/1.087, allocations: 169.1 kB / 496.6 MB, free: 14.57 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.088e-05/1.087, allocations: 80.14 kB / 496.7 MB, free: 14.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.061e-05/1.087, allocations: 79.28 kB / 496.8 MB, free: 14.41 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.677e-05/1.087, allocations: 109.8 kB / 496.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 3.997e-06/1.087, allocations: 0 / 496.9 MB, free: 14.3 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001537/1.087, allocations: 41.45 kB / 496.9 MB, free: 14.25 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.64e-05/1.087, allocations: 55.41 kB / 497 MB, free: 14.18 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003082/1.087, allocations: 146.5 kB / 497.1 MB, free: 14.03 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.918e-05/1.087, allocations: 25.7 kB / 497.1 MB, free: 14 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.199e-05/1.088, allocations: 88.12 kB / 497.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.675e-06/1.088, allocations: 4 kB / 497.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.51e-07/1.088, allocations: 0 / 497.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0002172/1.088, allocations: 318.8 kB / 497.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.6e-06/1.088, allocations: 0 / 497.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.764e-06/1.088, allocations: 8 kB / 497.6 MB, free: 13.58 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.475e-05/1.088, allocations: 75.28 kB / 497.6 MB, free: 13.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.748e-05/1.088, allocations: 79.27 kB / 497.7 MB, free: 13.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 0.0001142/1.088, allocations: 33.61 kB / 497.7 MB, free: 13.39 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.862e-05/1.088, allocations: 4 kB / 497.7 MB, free: 13.38 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.082e-05/1.088, allocations: 83.22 kB / 497.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001863/1.088, allocations: 150.6 kB / 498 MB, free: 13.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.943e-05/1.089, allocations: 75.28 kB / 498 MB, free: 13.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001437/1.089, allocations: 158.5 kB / 498.2 MB, free: 12.92 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001639/1.089, allocations: 79.19 kB / 498.3 MB, free: 12.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.875e-05/1.089, allocations: 91.19 kB / 498.4 MB, free: 12.75 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.0002585/1.089, allocations: 255.5 kB / 498.6 MB, free: 12.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001352/1.089, allocations: 113.1 kB / 498.7 MB, free: 12.38 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001338/1.09, allocations: 117.5 kB / 498.8 MB, free: 12.26 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.0001466/1.09, allocations: 180.2 kB / 499 MB, free: 12.08 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001672/1.09, allocations: 188.2 kB / 499.2 MB, free: 11.89 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001404/1.09, allocations: 180.3 kB / 499.4 MB, free: 11.7 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000514/1.091, allocations: 401.7 kB / 499.8 MB, free: 11.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.341e-05/1.091, allocations: 112.9 kB / 499.9 MB, free: 11.15 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.842e-05/1.091, allocations: 102 kB / 500 MB, free: 11.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001601/1.091, allocations: 176.3 kB / 0.4884 GB, free: 10.86 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001917/1.091, allocations: 184.2 kB / 0.4886 GB, free: 10.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001701/1.091, allocations: 180.2 kB / 0.4888 GB, free: 10.49 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001662/1.092, allocations: 176.3 kB / 0.4889 GB, free: 10.31 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003358/1.092, allocations: 320 kB / 0.4893 GB, free: 9.977 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0005302/1.092, allocations: 0.6837 MB / 0.4899 GB, free: 9.266 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002014/1.093, allocations: 190 kB / 0.4901 GB, free: 9.055 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001655/1.093, allocations: 180.2 kB / 0.4903 GB, free: 8.871 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001593/1.093, allocations: 108.9 kB / 0.4904 GB, free: 8.758 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001316/1.093, allocations: 184.2 kB / 0.4906 GB, free: 8.57 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.988e-05/1.093, allocations: 101 kB / 0.4906 GB, free: 8.465 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001817/1.093, allocations: 128.9 kB / 0.4908 GB, free: 8.34 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001685/1.095, allocations: 4 kB / 0.4908 GB, free: 8.336 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.000425/1.096, allocations: 202.4 kB / 0.491 GB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.599e-05/1.096, allocations: 0 / 0.491 GB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.957e-06/1.096, allocations: 0 / 0.491 GB, free: 8.125 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.546e-06/1.096, allocations: 4 kB / 0.491 GB, free: 8.121 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000886/1.097, allocations: 0.5302 MB / 0.4915 GB, free: 7.586 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000599/1.097, allocations: 178.9 kB / 0.4917 GB, free: 7.391 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000502/1.098, allocations: 0.7114 MB / 0.4924 GB, free: 6.652 MB / 378.7 MB Notification: Performance of SimCode: time 8.52e-07/1.098, allocations: 7.938 kB / 0.4924 GB, free: 6.645 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestSingleLayer12over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestSingleLayer12over12.fmu > HanserModelica_HanserModelica.Machines.TestSingleLayer12over12.pipe 2>&1)