Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit",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 3.2.3+maint.om/package.mo): time 0.001681/0.001681, allocations: 188.4 kB / 7.845 MB, free: 2.504 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.905/1.905, allocations: 205.2 MB / 213.4 MB, free: 13.86 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001305/0.001305, allocations: 99.47 kB / 261.5 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1024/0.1024, allocations: 12.59 MB / 322 MB, free: 0.9883 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 0.2712/0.3736, allocations: 56.49 MB / 378.5 MB, free: 75.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1069/0.4805, allocations: 50.37 MB / 428.9 MB, free: 25.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3325/0.813, allocations: 79.25 MB / 0.4962 GB, free: 11.93 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002613/0.8133, allocations: 67.34 kB / 0.4963 GB, free: 11.93 MB / 330.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.01809/0.8314, allocations: 3.872 MB / 0.5 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.341e-05/0.8315, allocations: 7.688 kB / 0.5001 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.966e-05/0.8316, allocations: 31.16 kB / 0.5001 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.8322, allocations: 314.5 kB / 0.5004 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.8322, allocations: 8.688 kB / 0.5004 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.49e-05/0.8323, allocations: 7.656 kB / 0.5004 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002716/0.8325, allocations: 77.84 kB / 0.5005 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007522/0.8333, allocations: 334.1 kB / 0.5008 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.8333, allocations: 0 / 0.5008 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.243e-05/0.8334, allocations: 0 / 0.5008 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.797e-06/0.8334, allocations: 3.844 kB / 0.5008 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009253/0.8343, allocations: 0.4922 MB / 0.5013 GB, free: 10.52 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009672/0.8353, allocations: 290 kB / 0.5015 GB, free: 10.44 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003782/0.8357, allocations: 120.2 kB / 0.5017 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.886e-05/0.8358, allocations: 9.469 kB / 0.5017 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.689e-05/0.8359, allocations: 38.03 kB / 0.5017 GB, free: 10.37 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 6.252e-06/0.8359, allocations: 3.938 kB / 0.5017 GB, free: 10.37 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002893/0.8388, allocations: 1.071 MB / 0.5028 GB, free: 9.805 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.47e-05/0.8389, allocations: 124.8 kB / 0.5029 GB, free: 9.676 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004727/0.8394, allocations: 279.5 kB / 0.5031 GB, free: 9.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.173e-05/0.8395, allocations: 25.7 kB / 0.5032 GB, free: 9.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.792e-05/0.8395, allocations: 116 kB / 0.5033 GB, free: 9.461 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.325e-05/0.8396, allocations: 47.12 kB / 0.5033 GB, free: 9.441 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.394e-05/0.8396, allocations: 0 / 0.5033 GB, free: 9.441 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001128/0.8397, allocations: 351.8 kB / 0.5037 GB, free: 9.125 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001446/0.8399, allocations: 51.89 kB / 0.5037 GB, free: 9.125 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002641/0.8402, allocations: 271 kB / 0.504 GB, free: 8.836 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002385/0.8404, allocations: 102.8 kB / 0.5041 GB, free: 8.824 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.988e-06/0.8404, allocations: 0 / 0.5041 GB, free: 8.824 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000687/0.8411, allocations: 316 kB / 0.5044 GB, free: 8.73 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.68e-05/0.8412, allocations: 4.438 kB / 0.5044 GB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.422e-05/0.8412, allocations: 11.62 kB / 0.5044 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.104e-05/0.8412, allocations: 11.75 kB / 0.5044 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005146/0.8417, allocations: 87.08 kB / 0.5045 GB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.8418, allocations: 9.422 kB / 0.5045 GB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004033/0.8422, allocations: 25.03 kB / 0.5045 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.338e-05/0.8422, allocations: 24.56 kB / 0.5045 GB, free: 8.707 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 35 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (47): * Single equations (assignments): 47 * 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.0001365/0.8424, allocations: 119.7 kB / 0.5046 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000635/0.843, allocations: 262.2 kB / 0.5049 GB, free: 8.523 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008755/0.8439, allocations: 329.1 kB / 0.5052 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.736e-06/0.8439, allocations: 3.844 kB / 0.5052 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.844, allocations: 7.906 kB / 0.5052 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.077e-05/0.844, allocations: 2.484 kB / 0.5052 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004672/0.8445, allocations: 269.8 kB / 0.5055 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.849e-06/0.8445, allocations: 3.672 kB / 0.5055 GB, free: 8.309 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.8455, allocations: 121 kB / 0.5056 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.838e-06/0.8456, allocations: 3.719 kB / 0.5056 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.372e-05/0.8456, allocations: 2.156 kB / 0.5056 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.743e-06/0.8456, allocations: 7.875 kB / 0.5056 GB, free: 8.297 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.897e-06/0.8456, allocations: 4 kB / 0.5056 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001206/0.8469, allocations: 0.6436 MB / 0.5062 GB, free: 8.012 MB / 330.7 MB Notification: Performance of postOpt generateSymbolicLinearization (simulation): time 0.001492/0.8484, allocations: 1.157 MB / 0.5074 GB, free: 7.359 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001236/0.8485, allocations: 116.9 kB / 0.5075 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.055e-05/0.8486, allocations: 4.453 kB / 0.5075 GB, free: 7.242 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000489/0.8491, allocations: 9.641 kB / 0.5075 GB, free: 7.238 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.295e-05/0.8492, allocations: 13.55 kB / 0.5075 GB, free: 7.234 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.472e-05/0.8492, allocations: 9.109 kB / 0.5075 GB, free: 7.234 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003514/0.8496, allocations: 231 kB / 0.5077 GB, free: 7.148 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.001463/0.8511, allocations: 49.95 kB / 0.5078 GB, free: 7.148 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 41 * 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.0001972/0.8513, allocations: 116.2 kB / 0.5079 GB, free: 7.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006896/0.852, allocations: 235.7 kB / 0.5081 GB, free: 7.023 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.368e-06/0.852, allocations: 0 / 0.5081 GB, free: 7.023 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.931e-05/0.8521, allocations: 22.08 kB / 0.5081 GB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009418/0.853, allocations: 180.1 kB / 0.5083 GB, free: 6.996 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001731/0.8548, allocations: 0.5372 MB / 0.5088 GB, free: 6.723 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004943/0.8553, allocations: 0.8472 MB / 0.5097 GB, free: 5.957 MB / 330.7 MB Notification: Performance of SimCode: time 1.703e-06/0.8553, allocations: 0 / 0.5097 GB, free: 5.957 MB / 330.7 MB (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_Synchronous_Modelica_Synchronous_Examples_Systems_ControlledMixingUnit.fmu > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1)