Running: ./testmodel.py --libraries=/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/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 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") translateModel(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|filter.y|inverseBlockConstraints.y1|mixingUnit.c|sample2.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit") [: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(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002278/0.002278, allocations: 170.5 kB / 8.186 MB, free: 2.133 MB / 5.871 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.887/1.887, allocations: 205.2 MB / 213.8 MB, free: 13.93 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001308/0.001307, allocations: 90.61 kB / 261.8 MB, free: 13.62 MB / 218.7 MB Notification: Performance of loadFile(/var/lib/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09747/0.09747, allocations: 12.59 MB / 322.3 MB, free: 0.9844 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.687e-06/8.846e-06, allocations: 4 kB / 378.4 MB, free: 76.03 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08781/0.08784, allocations: 50.37 MB / 428.7 MB, free: 25.68 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.293/0.3809, allocations: 79.25 MB / 0.4961 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002778/0.3813, allocations: 69.84 kB / 0.4962 GB, free: 11.75 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.0164/0.3977, allocations: 3.342 MB / 0.4994 GB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.064e-05/0.3977, allocations: 3.906 kB / 0.4994 GB, free: 11.49 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.0008126/0.3986, allocations: 0.5089 MB / 0.4999 GB, free: 11.06 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.748e-05/0.3986, allocations: 9.781 kB / 0.4999 GB, free: 11.06 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.456e-05/0.3987, allocations: 37.03 kB / 0.5 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005173/0.3992, allocations: 312.2 kB / 0.5003 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.566e-05/0.3993, allocations: 3.812 kB / 0.5003 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.686e-05/0.3993, allocations: 15.25 kB / 0.5003 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002521/0.3996, allocations: 72.3 kB / 0.5003 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007268/0.4003, allocations: 337.2 kB / 0.5007 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.253e-05/0.4004, allocations: 0 / 0.5007 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.137e-05/0.4004, allocations: 3.938 kB / 0.5007 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.466e-06/0.4004, allocations: 3.875 kB / 0.5007 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008702/0.4013, allocations: 0.4975 MB / 0.5012 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009613/0.4023, allocations: 282.9 kB / 0.5014 GB, free: 10.26 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002606/0.4026, allocations: 123.1 kB / 0.5015 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.561e-05/0.4026, allocations: 5.922 kB / 0.5016 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.152e-05/0.4026, allocations: 45.84 kB / 0.5016 GB, free: 10.19 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.136e-06/0.4027, allocations: 4 kB / 0.5016 GB, free: 10.18 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.002743/0.4054, allocations: 1.07 MB / 0.5026 GB, free: 9.625 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.374e-05/0.4055, allocations: 125.6 kB / 0.5028 GB, free: 9.492 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004438/0.406, allocations: 285.3 kB / 0.503 GB, free: 9.395 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.406, allocations: 25.7 kB / 0.5031 GB, free: 9.363 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.083e-05/0.4061, allocations: 155.6 kB / 0.5032 GB, free: 9.215 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.047e-05/0.4061, allocations: 42.27 kB / 0.5033 GB, free: 9.195 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.407e-05/0.4062, allocations: 0 / 0.5033 GB, free: 9.195 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.92e-05/0.4062, allocations: 331.5 kB / 0.5036 GB, free: 8.879 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001366/0.4064, allocations: 55.2 kB / 0.5036 GB, free: 8.875 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002318/0.4066, allocations: 270.9 kB / 0.5039 GB, free: 8.59 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002241/0.4069, allocations: 104.2 kB / 0.504 GB, free: 8.574 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.917e-06/0.4069, allocations: 0 / 0.504 GB, free: 8.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0006219/0.4075, allocations: 294.6 kB / 0.5043 GB, free: 8.492 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.4075, allocations: 3.688 kB / 0.5043 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.283e-05/0.4076, allocations: 7.781 kB / 0.5043 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.038e-05/0.4076, allocations: 19.38 kB / 0.5043 GB, free: 8.484 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005372/0.4082, allocations: 90.78 kB / 0.5044 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.5e-05/0.4082, allocations: 13.08 kB / 0.5044 GB, free: 8.477 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002458/0.4084, allocations: 20.67 kB / 0.5044 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.4085, allocations: 19.19 kB / 0.5044 GB, free: 8.469 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.000119/0.4086, allocations: 45.3 kB / 0.5045 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006591/0.4093, allocations: 267.8 kB / 0.5047 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008677/0.4102, allocations: 324.7 kB / 0.505 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.945e-06/0.4102, allocations: 3.688 kB / 0.505 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.4102, allocations: 3.844 kB / 0.505 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.136e-05/0.4102, allocations: 2.672 kB / 0.505 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004795/0.4107, allocations: 269.6 kB / 0.5053 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.769e-06/0.4107, allocations: 3.719 kB / 0.5053 GB, free: 8.145 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001078/0.4118, allocations: 119.9 kB / 0.5054 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.548e-06/0.4118, allocations: 3.844 kB / 0.5054 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.418e-05/0.4119, allocations: 4.578 kB / 0.5054 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.655e-06/0.4119, allocations: 3.906 kB / 0.5054 GB, free: 8.137 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.787e-06/0.4119, allocations: 3.938 kB / 0.5054 GB, free: 8.133 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.001142/0.4131, allocations: 0.6507 MB / 0.5061 GB, free: 7.844 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001074/0.4132, allocations: 112.1 kB / 0.5062 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.904e-05/0.4133, allocations: 5.484 kB / 0.5062 GB, free: 7.73 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004689/0.4138, allocations: 12.64 kB / 0.5062 GB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.705e-05/0.4138, allocations: 5.797 kB / 0.5062 GB, free: 7.727 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.171e-05/0.4139, allocations: 9.219 kB / 0.5062 GB, free: 7.727 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0003244/0.4142, allocations: 232.9 kB / 0.5064 GB, free: 7.641 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005926/0.4148, allocations: 53.5 kB / 0.5065 GB, free: 7.637 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.000147/0.415, allocations: 104.3 kB / 0.5066 GB, free: 7.543 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005577/0.4155, allocations: 233.3 kB / 0.5068 GB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.4156, allocations: 0 / 0.5068 GB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.172e-05/0.4156, allocations: 22.41 kB / 0.5068 GB, free: 7.52 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008916/0.4165, allocations: 173.2 kB / 0.507 GB, free: 7.504 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001604/0.4182, allocations: 0.5871 MB / 0.5076 GB, free: 7.207 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004696/0.4186, allocations: 0.8432 MB / 0.5084 GB, free: 6.496 MB / 330.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4187, allocations: 0 / 0.5084 GB, free: 6.496 MB / 330.7 MB Notification: Performance of Templates: time 0.008676/0.4273, allocations: 3.696 MB / 0.512 GB, free: 4.719 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches