Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.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.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Machines.TestDoubleLayer10over12,fileNamePrefix="HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12",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.005595/0.0056, allocations: 177.8 kB / 7.455 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.05767/0.05767, allocations: 8.71 MB / 16.58 MB, free: 428 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.267/2.267, allocations: 221.4 MB / 240.5 MB, free: 8.207 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.001532/0.001532, allocations: 94.22 kB / 293.5 MB, free: 5.5 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2111/0.2127, allocations: 58.67 MB / 352.2 MB, free: 10.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5051/0.7178, allocations: 52.54 MB / 404.7 MB, free: 26.75 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1602/0.8781, allocations: 79.68 MB / 484.4 MB, free: 10.95 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003917/0.8785, allocations: 71.91 kB / 484.5 MB, free: 10.88 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.04939/0.928, allocations: 10.41 MB / 494.9 MB, free: 404 kB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.697e-05/0.928, allocations: 8 kB / 494.9 MB, free: 396 kB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006304/0.9287, allocations: 107.2 kB / 495 MB, free: 288 kB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003706/0.9324, allocations: 0.7758 MB / 495.8 MB, free: 15.46 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.409e-05/0.9326, allocations: 154.6 kB / 495.9 MB, free: 15.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.727e-05/0.9327, allocations: 154.5 kB / 496.1 MB, free: 15.15 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 8.178e-05/0.9328, allocations: 154.5 kB / 496.2 MB, free: 15 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 8.004e-05/0.9329, allocations: 104.9 kB / 496.3 MB, free: 14.89 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.795e-05/0.9329, allocations: 79.28 kB / 496.4 MB, free: 14.81 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.939e-05/0.933, allocations: 150.6 kB / 496.5 MB, free: 14.66 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.258e-05/0.9331, allocations: 150.6 kB / 496.7 MB, free: 14.52 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004949/0.9336, allocations: 442.5 kB / 497.1 MB, free: 14.05 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001386/0.9338, allocations: 173.1 kB / 497.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.347e-05/0.9338, allocations: 88.12 kB / 497.4 MB, free: 13.78 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.722e-05/0.9339, allocations: 75.28 kB / 497.4 MB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.023e-05/0.934, allocations: 109.8 kB / 497.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of pre-optimization done (n=0): time 4.619e-06/0.934, allocations: 0 / 497.6 MB, free: 13.59 MB / 378.7 MB Notification: Performance of matching and sorting (n=0): time 0.0001327/0.9341, allocations: 37.52 kB / 497.6 MB, free: 13.54 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.084e-05/0.9342, allocations: 55.41 kB / 497.6 MB, free: 13.48 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002526/0.9345, allocations: 142.5 kB / 497.8 MB, free: 13.33 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.52e-05/0.9345, allocations: 25.7 kB / 497.8 MB, free: 13.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.391e-05/0.9346, allocations: 92.12 kB / 497.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.897e-06/0.9346, allocations: 0 / 497.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.21e-07/0.9346, allocations: 3.938 kB / 497.9 MB, free: 13.2 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001732/0.9348, allocations: 322.8 kB / 498.2 MB, free: 12.88 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.582e-06/0.9348, allocations: 3.938 kB / 498.2 MB, free: 12.87 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.741e-06/0.9348, allocations: 0 / 498.2 MB, free: 12.87 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.115e-05/0.9348, allocations: 79.28 kB / 498.3 MB, free: 12.79 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.771e-05/0.9349, allocations: 75.28 kB / 498.4 MB, free: 12.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=0) (initialization): time 9.599e-05/0.935, allocations: 41.61 kB / 498.4 MB, free: 12.67 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.935, allocations: 4 kB / 498.4 MB, free: 12.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.671e-05/0.9351, allocations: 75.28 kB / 498.5 MB, free: 12.59 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.702e-05/0.9352, allocations: 154.5 kB / 498.6 MB, free: 12.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.206e-05/0.9352, allocations: 79.28 kB / 498.7 MB, free: 12.36 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.312e-05/0.9353, allocations: 154.6 kB / 498.9 MB, free: 12.21 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001516/0.9355, allocations: 87.11 kB / 499 MB, free: 12.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.576e-05/0.9355, allocations: 75.28 kB / 499 MB, free: 12.05 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.0001651/0.9357, allocations: 255.5 kB / 499.3 MB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.831e-05/0.9358, allocations: 109.1 kB / 499.4 MB, free: 11.68 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001085/0.9359, allocations: 125.4 kB / 499.5 MB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.858e-05/0.936, allocations: 180.3 kB / 499.7 MB, free: 11.37 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000101/0.9361, allocations: 180.3 kB / 499.9 MB, free: 11.19 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.697e-05/0.9362, allocations: 180.2 kB / 0.4883 GB, free: 11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003295/0.9366, allocations: 405.7 kB / 0.4887 GB, free: 10.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.374e-05/0.9366, allocations: 105 kB / 0.4888 GB, free: 10.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.221e-05/0.9367, allocations: 109.9 kB / 0.4889 GB, free: 10.34 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.908e-05/0.9368, allocations: 176.3 kB / 0.4891 GB, free: 10.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001138/0.9369, allocations: 176.3 kB / 0.4892 GB, free: 9.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.693e-05/0.937, allocations: 188.2 kB / 0.4894 GB, free: 9.789 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.121e-05/0.9371, allocations: 180.3 kB / 0.4896 GB, free: 9.605 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001793/0.9373, allocations: 312 kB / 0.4899 GB, free: 9.277 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0003663/0.9377, allocations: 0.6837 MB / 0.4906 GB, free: 8.566 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001087/0.9378, allocations: 193.9 kB / 0.4907 GB, free: 8.352 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000104/0.9379, allocations: 188.2 kB / 0.4909 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000128/0.9381, allocations: 105 kB / 0.491 GB, free: 8.051 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.965e-05/0.9382, allocations: 184.2 kB / 0.4912 GB, free: 7.863 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.218e-05/0.9382, allocations: 101 kB / 0.4913 GB, free: 7.758 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0001645/0.9384, allocations: 132.8 kB / 0.4914 GB, free: 7.629 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001687/0.9401, allocations: 4 kB / 0.4914 GB, free: 7.625 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.000391/0.9405, allocations: 210.4 kB / 0.4916 GB, free: 7.41 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 6.958e-05/0.9406, allocations: 0 / 0.4916 GB, free: 7.41 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.238e-06/0.9406, allocations: 4 kB / 0.4916 GB, free: 7.406 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.083e-06/0.9406, allocations: 3.938 kB / 0.4916 GB, free: 7.402 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007385/0.9414, allocations: 0.5302 MB / 0.4922 GB, free: 6.867 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005342/0.9419, allocations: 174.9 kB / 0.4923 GB, free: 6.676 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005125/0.9425, allocations: 0.7192 MB / 0.493 GB, free: 5.93 MB / 378.7 MB Notification: Performance of SimCode: time 6.81e-07/0.9425, allocations: 0 / 0.493 GB, free: 5.93 MB / 378.7 MB (rm -f HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; mkfifo HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe >> ../files/HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Machines_TestDoubleLayer10over12.fmu > HanserModelica_HanserModelica.Machines.TestDoubleLayer10over12.pipe 2>&1)