Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Classes.MixedDeclaration.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.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HanserModelica.Classes.MixedDeclaration,fileNamePrefix="HanserModelica_HanserModelica_Classes_MixedDeclaration",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.009739/0.009739, allocations: 184.5 kB / 7.462 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.08627/0.08627, allocations: 8.709 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.343/2.343, allocations: 221.4 MB / 240.5 MB, free: 8.133 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.00144/0.00144, allocations: 101.6 kB / 293.5 MB, free: 7.43 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2504/0.2519, allocations: 58.67 MB / 352.2 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.533/0.7849, allocations: 52.53 MB / 404.7 MB, free: 26.98 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.169/0.954, allocations: 75.75 MB / 480.5 MB, free: 15.12 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004196/0.9545, allocations: 59.97 kB / 480.5 MB, free: 15.06 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: 2 * Number of variables: 2 Notification: Performance of Generate backend data structure: time 0.001885/0.9564, allocations: 458.4 kB / 481 MB, free: 14.57 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.607e-05/0.9565, allocations: 8.656 kB / 481 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.241e-05/0.9566, allocations: 4.656 kB / 481 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002235/0.9568, allocations: 171 kB / 481.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.622e-05/0.9569, allocations: 0.6875 kB / 481.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.052e-05/0.9569, allocations: 0 / 481.1 MB, free: 14.36 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 4.491e-05/0.9569, allocations: 5.156 kB / 481.2 MB, free: 14.35 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001029/0.9571, allocations: 45.81 kB / 481.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.107e-05/0.9571, allocations: 0 / 481.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.132e-05/0.9571, allocations: 0 / 481.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.9571, allocations: 0 / 481.2 MB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005772/0.9577, allocations: 457 kB / 481.6 MB, free: 13.81 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000112/0.9578, allocations: 169.9 kB / 481.8 MB, free: 13.64 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.487e-05/0.9579, allocations: 80.8 kB / 481.9 MB, free: 13.55 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.924e-05/0.958, allocations: 75.84 kB / 482 MB, free: 13.48 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.727e-05/0.958, allocations: 110.9 kB / 482.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of pre-optimization done (n=0): time 1.403e-06/0.958, allocations: 4.656 kB / 482.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of matching and sorting (n=0): time 8.937e-05/0.9581, allocations: 33.55 kB / 482.1 MB, free: 13.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.675e-05/0.9582, allocations: 52.5 kB / 482.2 MB, free: 13.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001104/0.9583, allocations: 93 kB / 482.3 MB, free: 13.16 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.312e-05/0.9583, allocations: 26.42 kB / 482.3 MB, free: 13.12 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.409e-05/0.9584, allocations: 96.64 kB / 482.4 MB, free: 13.03 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.24e-06/0.9584, allocations: 3.984 kB / 482.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.386e-06/0.9584, allocations: 0.625 kB / 482.4 MB, free: 13.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.9586, allocations: 315.4 kB / 482.7 MB, free: 12.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.742e-05/0.9586, allocations: 4.938 kB / 482.7 MB, free: 12.7 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.978e-05/0.9587, allocations: 10.5 kB / 482.7 MB, free: 12.69 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.672e-05/0.9587, allocations: 9.188 kB / 482.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.896e-06/0.9588, allocations: 0 / 482.7 MB, free: 12.68 MB / 362.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 0.0001703/0.9589, allocations: 46.48 kB / 482.8 MB, free: 12.63 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.288e-05/0.959, allocations: 7.984 kB / 482.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.676e-06/0.959, allocations: 0 / 482.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.126e-05/0.959, allocations: 2.031 kB / 482.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.298e-05/0.9591, allocations: 4 kB / 482.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.542e-06/0.9591, allocations: 0 / 482.8 MB, free: 12.62 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.883e-05/0.9592, allocations: 4 kB / 482.8 MB, free: 12.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.276e-05/0.9592, allocations: 1.016 kB / 482.8 MB, free: 12.61 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (2): * Single equations (assignments): 2 * 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.0001536/0.9594, allocations: 177.5 kB / 482.9 MB, free: 12.43 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001144/0.9595, allocations: 105.4 kB / 483 MB, free: 12.32 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001114/0.9596, allocations: 116.7 kB / 483.2 MB, free: 12.21 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.000123/0.9598, allocations: 177 kB / 483.3 MB, free: 12.03 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001119/0.9599, allocations: 177.3 kB / 483.5 MB, free: 11.85 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001083/0.96, allocations: 185 kB / 483.7 MB, free: 11.66 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003888/0.9604, allocations: 382.4 kB / 484.1 MB, free: 11.24 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.685e-05/0.9605, allocations: 101.8 kB / 484.2 MB, free: 11.14 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.385e-05/0.9606, allocations: 109.2 kB / 484.3 MB, free: 11.02 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001318/0.9607, allocations: 181.7 kB / 484.4 MB, free: 10.84 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001274/0.9609, allocations: 180.3 kB / 484.6 MB, free: 10.66 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0001115/0.961, allocations: 189.3 kB / 484.8 MB, free: 10.46 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 0.0001072/0.9611, allocations: 180.4 kB / 485 MB, free: 10.28 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002962/0.9614, allocations: 303.8 kB / 485.3 MB, free: 9.961 MB / 362.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0004729/0.9619, allocations: 0.6807 MB / 486 MB, free: 9.254 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001589/0.9621, allocations: 178.1 kB / 486.1 MB, free: 9.055 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001487/0.9622, allocations: 184.2 kB / 486.3 MB, free: 8.867 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001549/0.9624, allocations: 101 kB / 486.4 MB, free: 8.762 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.9625, allocations: 188.2 kB / 486.6 MB, free: 8.57 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.277e-05/0.9626, allocations: 101 kB / 486.7 MB, free: 8.465 MB / 362.7 MB Notification: Performance of sort global known variables: time 7.739e-05/0.9627, allocations: 87.22 kB / 486.8 MB, free: 8.379 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001537/0.9642, allocations: 0 / 486.8 MB, free: 8.379 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 (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.0002418/0.9645, allocations: 170.5 kB / 486.9 MB, free: 8.199 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001015/0.9646, allocations: 8.297 kB / 487 MB, free: 8.191 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.9647, allocations: 4 kB / 487 MB, free: 8.188 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.891e-06/0.9647, allocations: 3.984 kB / 487 MB, free: 8.184 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004721/0.9652, allocations: 0.5186 MB / 487.5 MB, free: 7.66 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003213/0.9655, allocations: 123.2 kB / 487.6 MB, free: 7.516 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000408/0.9659, allocations: 0.6918 MB / 488.3 MB, free: 6.797 MB / 362.7 MB Notification: Performance of SimCode: time 5.41e-07/0.9659, allocations: 0 / 488.3 MB, free: 6.797 MB / 362.7 MB (rm -f HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; mkfifo HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe >> ../files/HanserModelica_HanserModelica.Classes.MixedDeclaration.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_HanserModelica_HanserModelica_Classes_MixedDeclaration_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 HanserModelica_HanserModelica_Classes_MixedDeclaration.fmu > HanserModelica_HanserModelica.Classes.MixedDeclaration.pipe 2>&1)