Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo", uses=false) 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/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 Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo) Running command: "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.CheckSubstancesData.SimpleReaction,fileNamePrefix="Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction",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/Chemical 1.4.0-master/package.mo): time 0.07435/0.07435, allocations: 15.26 MB / 22.55 MB, free: 1.109 MB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009863/0.0009863, allocations: 191.4 kB / 27.31 MB, free: 4 kB / 18.57 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.153/1.153, allocations: 221.4 MB / 253.3 MB, free: 10.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.0008649/0.0008648, allocations: 80.55 kB / 308.4 MB, free: 10.64 MB / 250.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2005/0.2014, allocations: 60.74 MB / 369.1 MB, free: 53.61 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07863/0.28, allocations: 54.63 MB / 423.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2817/0.5617, allocations: 94.21 MB / 0.5058 GB, free: 8.176 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000217/0.562, allocations: 66.03 kB / 0.5059 GB, free: 8.176 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: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.03664/0.5987, allocations: 15.86 MB / 0.5214 GB, free: 6.664 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.482e-05/0.5987, allocations: 7.625 kB / 0.5214 GB, free: 6.664 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005168/0.5992, allocations: 139.7 kB / 0.5215 GB, free: 6.641 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004206/0.5997, allocations: 319.1 kB / 0.5218 GB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.247e-05/0.5997, allocations: 7.781 kB / 0.5218 GB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.731e-05/0.5997, allocations: 12.28 kB / 0.5218 GB, free: 6.414 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001301/0.601, allocations: 1.176 MB / 0.523 GB, free: 6.406 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006/0.6016, allocations: 0.6176 MB / 0.5236 GB, free: 6.297 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.149e-05/0.6017, allocations: 11.2 kB / 0.5236 GB, free: 6.289 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.607e-05/0.6017, allocations: 0.75 kB / 0.5236 GB, free: 6.289 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.105e-06/0.6017, allocations: 7.875 kB / 0.5236 GB, free: 6.289 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002503/0.6042, allocations: 2.416 MB / 0.526 GB, free: 21.2 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.057e-05/0.6043, allocations: 59.66 kB / 0.526 GB, free: 21.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.766e-05/0.6043, allocations: 27.84 kB / 0.5261 GB, free: 21.15 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.703e-05/0.6044, allocations: 0 / 0.5261 GB, free: 21.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.6044, allocations: 38.34 kB / 0.5261 GB, free: 21.11 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 9.92e-07/0.6044, allocations: 0 / 0.5261 GB, free: 21.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002024/0.6046, allocations: 97.83 kB / 0.5262 GB, free: 21.05 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.404e-05/0.6046, allocations: 62.34 kB / 0.5263 GB, free: 20.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00101/0.6057, allocations: 1.297 MB / 0.5275 GB, free: 20.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.184e-05/0.6057, allocations: 29.7 kB / 0.5275 GB, free: 20.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.209e-05/0.6058, allocations: 223.3 kB / 0.5278 GB, free: 20.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.282e-05/0.6058, allocations: 15.5 kB / 0.5278 GB, free: 20.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.778e-05/0.6058, allocations: 3.875 kB / 0.5278 GB, free: 20.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.6059, allocations: 340.7 kB / 0.5281 GB, free: 20.21 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003118/0.6062, allocations: 411.7 kB / 0.5285 GB, free: 20.17 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003437/0.6066, allocations: 0.5408 MB / 0.529 GB, free: 19.93 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001198/0.6078, allocations: 0.5664 MB / 0.5296 GB, free: 19.75 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.248e-06/0.6078, allocations: 0 / 0.5296 GB, free: 19.75 MB / 378.7 MB Notification: Performance of matching and sorting (n=37) (initialization): time 0.001685/0.6095, allocations: 1.094 MB / 0.5306 GB, free: 19.45 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.106e-05/0.6095, allocations: 3.938 kB / 0.5306 GB, free: 19.45 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.518e-06/0.6095, allocations: 11.83 kB / 0.5307 GB, free: 19.44 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.483e-05/0.6096, allocations: 11.5 kB / 0.5307 GB, free: 19.44 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003043/0.6099, allocations: 82.66 kB / 0.5307 GB, free: 19.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.386e-06/0.6099, allocations: 15.81 kB / 0.5308 GB, free: 19.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00033/0.6102, allocations: 35.16 kB / 0.5308 GB, free: 19.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.385e-05/0.6103, allocations: 23.42 kB / 0.5308 GB, free: 19.38 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 23 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (37): * Single equations (assignments): 37 * 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 8.262e-05/0.6104, allocations: 120.5 kB / 0.5309 GB, free: 19.27 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.383e-05/0.6104, allocations: 27.31 kB / 0.531 GB, free: 19.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001742/0.6106, allocations: 116.5 kB / 0.5311 GB, free: 19.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.6106, allocations: 3.875 kB / 0.5311 GB, free: 19.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.787e-06/0.6106, allocations: 0 / 0.5311 GB, free: 19.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.517e-06/0.6106, allocations: 4 kB / 0.5311 GB, free: 19.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006198/0.6112, allocations: 0.7874 MB / 0.5318 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.114e-06/0.6113, allocations: 3.844 kB / 0.5319 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.2e-05/0.6113, allocations: 7.906 kB / 0.5319 GB, free: 18.49 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.228e-06/0.6113, allocations: 12.11 kB / 0.5319 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.047e-06/0.6114, allocations: 4 kB / 0.5319 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.384e-06/0.6114, allocations: 3.844 kB / 0.5319 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.6114, allocations: 0 / 0.5319 GB, free: 18.48 MB / 378.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0001653/0.6115, allocations: 225.5 kB / 0.5321 GB, free: 18.26 MB / 378.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.0002536/0.6118, allocations: 0.6127 MB / 0.5327 GB, free: 17.67 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001269/0.6119, allocations: 146 kB / 0.5328 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.612, allocations: 3.984 kB / 0.5328 GB, free: 17.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001504/0.6122, allocations: 7.781 kB / 0.5328 GB, free: 17.53 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.538e-05/0.6122, allocations: 3.844 kB / 0.5328 GB, free: 17.53 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.021e-06/0.6122, allocations: 3.781 kB / 0.5328 GB, free: 17.53 MB / 378.7 MB Notification: Performance of sort global known variables: time 0.0007183/0.6129, allocations: 1.039 MB / 0.5339 GB, free: 17.36 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001146/0.6141, allocations: 249.7 kB / 0.5341 GB, free: 17.3 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (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 Backend phase and start with SimCode phase: time 0.0005278/0.6146, allocations: 401.2 kB / 0.5345 GB, free: 17.11 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000451/0.6151, allocations: 495.6 kB / 0.535 GB, free: 17.04 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.6151, allocations: 384 / 0.535 GB, free: 17.04 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 3.485e-05/0.6151, allocations: 38.23 kB / 0.535 GB, free: 17.03 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003606/0.6155, allocations: 61.92 kB / 0.5351 GB, free: 17.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005879/0.6161, allocations: 337.6 kB / 0.5354 GB, free: 16.8 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003595/0.6165, allocations: 0.8319 MB / 0.5362 GB, free: 16.04 MB / 378.7 MB Notification: Performance of SimCode: time 2.71e-07/0.6165, allocations: 0 / 0.5362 GB, free: 16.04 MB / 378.7 MB (rm -f Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; mkfifo Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe ; head -c 1048576 < Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe >> ../files/Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction_fmu --startTime=0 --stopTime=0.001 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_CheckSubstancesData_SimpleReaction.fmu > Chemical_Chemical.Examples.CheckSubstancesData.SimpleReaction.pipe 2>&1)