Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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: 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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002188/0.002188, allocations: 179.4 kB / 8.406 MB, free: 0.6719 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.108/2.108, allocations: 205.3 MB / 214.1 MB, free: 1.668 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.001063/0.001063, allocations: 78.7 kB / 262.1 MB, free: 1.617 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.09847/0.09847, allocations: 12.61 MB / 322.7 MB, free: 15.18 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.164e-05/2.182e-05, allocations: 0 / 378.9 MB, free: 6.898 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.311/0.3111, allocations: 50.37 MB / 429.3 MB, free: 18.43 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1426/0.4537, allocations: 79.34 MB / 0.4967 GB, free: 2.984 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000289/0.4541, allocations: 67.97 kB / 0.4967 GB, free: 2.918 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01794/0.472, allocations: 3.647 MB / 0.5003 GB, free: 15.26 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4721, allocations: 3.938 kB / 0.5003 GB, free: 15.25 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.378e-05/0.4721, allocations: 4 kB / 0.5003 GB, free: 15.25 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001003/0.4731, allocations: 0.5057 MB / 0.5008 GB, free: 14.7 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.4732, allocations: 12.03 kB / 0.5008 GB, free: 14.68 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.725e-05/0.4733, allocations: 31.62 kB / 0.5008 GB, free: 14.65 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.4739, allocations: 308.1 kB / 0.5011 GB, free: 14.31 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.733e-05/0.474, allocations: 4 kB / 0.5011 GB, free: 14.3 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.075e-05/0.474, allocations: 11.95 kB / 0.5012 GB, free: 14.29 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002849/0.4743, allocations: 80.55 kB / 0.5012 GB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008114/0.4752, allocations: 321.8 kB / 0.5015 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.255e-05/0.4752, allocations: 0 / 0.5015 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.173e-05/0.4752, allocations: 0 / 0.5015 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.045e-05/0.4752, allocations: 4 kB / 0.5015 GB, free: 13.88 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009983/0.4762, allocations: 0.4903 MB / 0.502 GB, free: 13.34 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001051/0.4773, allocations: 288.3 kB / 0.5023 GB, free: 13.03 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000304/0.4777, allocations: 126.6 kB / 0.5024 GB, free: 12.9 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.945e-05/0.4777, allocations: 15.92 kB / 0.5024 GB, free: 12.89 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.442e-05/0.4778, allocations: 34.5 kB / 0.5025 GB, free: 12.84 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 3.146e-06/0.4778, allocations: 0 / 0.5025 GB, free: 12.84 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.003039/0.4808, allocations: 1.077 MB / 0.5035 GB, free: 11.68 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000124/0.481, allocations: 123.2 kB / 0.5036 GB, free: 11.53 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005212/0.4815, allocations: 293.1 kB / 0.5039 GB, free: 11.24 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.649e-05/0.4816, allocations: 25.7 kB / 0.5039 GB, free: 11.21 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001297/0.4817, allocations: 191.3 kB / 0.5041 GB, free: 11.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.369e-05/0.4818, allocations: 43.53 kB / 0.5042 GB, free: 10.98 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.329e-05/0.4818, allocations: 4.031 kB / 0.5042 GB, free: 10.97 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001401/0.482, allocations: 326.8 kB / 0.5045 GB, free: 10.64 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00015/0.4821, allocations: 56.86 kB / 0.5045 GB, free: 10.59 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003484/0.4825, allocations: 266.1 kB / 0.5048 GB, free: 10.22 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002572/0.4828, allocations: 108.7 kB / 0.5049 GB, free: 10.11 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.32e-06/0.4828, allocations: 0 / 0.5049 GB, free: 10.11 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007294/0.4835, allocations: 293.8 kB / 0.5052 GB, free: 9.82 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.676e-05/0.4836, allocations: 8 kB / 0.5052 GB, free: 9.812 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.595e-05/0.4836, allocations: 8 kB / 0.5052 GB, free: 9.805 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.581e-05/0.4837, allocations: 15.98 kB / 0.5052 GB, free: 9.789 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000515/0.4842, allocations: 87.84 kB / 0.5053 GB, free: 9.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.962e-05/0.4842, allocations: 11.94 kB / 0.5053 GB, free: 9.691 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004152/0.4846, allocations: 19.92 kB / 0.5053 GB, free: 9.672 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.4847, allocations: 23.95 kB / 0.5053 GB, free: 9.648 MB / 362.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.0001667/0.4849, allocations: 124.9 kB / 0.5055 GB, free: 9.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006681/0.4855, allocations: 253 kB / 0.5057 GB, free: 9.266 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009182/0.4865, allocations: 325.5 kB / 0.506 GB, free: 8.938 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.145e-05/0.4865, allocations: 4 kB / 0.506 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.4865, allocations: 0 / 0.506 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.188e-05/0.4866, allocations: 8.016 kB / 0.506 GB, free: 8.926 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005383/0.4871, allocations: 273.9 kB / 0.5063 GB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.178e-06/0.4871, allocations: 0 / 0.5063 GB, free: 8.621 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001073/0.4882, allocations: 127.8 kB / 0.5064 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.007e-05/0.4882, allocations: 0 / 0.5064 GB, free: 8.496 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.431e-05/0.4883, allocations: 4 kB / 0.5064 GB, free: 8.492 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.723e-06/0.4883, allocations: 7.875 kB / 0.5064 GB, free: 8.484 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.741e-06/0.4883, allocations: 4 kB / 0.5064 GB, free: 8.48 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001348/0.4897, allocations: 0.6502 MB / 0.5071 GB, free: 7.797 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001555/0.4899, allocations: 116.6 kB / 0.5072 GB, free: 7.664 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.691e-05/0.4899, allocations: 7.984 kB / 0.5072 GB, free: 7.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004195/0.4904, allocations: 8 kB / 0.5072 GB, free: 7.648 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.127e-05/0.4904, allocations: 3.984 kB / 0.5072 GB, free: 7.645 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.829e-05/0.4905, allocations: 15.95 kB / 0.5072 GB, free: 7.629 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003989/0.4909, allocations: 236.7 kB / 0.5074 GB, free: 7.402 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.4909, allocations: 0 / 0.5074 GB, free: 7.402 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.000656/0.4916, allocations: 52 kB / 0.5075 GB, free: 7.352 MB / 362.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.0001835/0.4918, allocations: 99.12 kB / 0.5076 GB, free: 7.246 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0006559/0.4924, allocations: 237.4 kB / 0.5078 GB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.346e-06/0.4925, allocations: 0 / 0.5078 GB, free: 7.016 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 9.121e-05/0.4926, allocations: 28.11 kB / 0.5078 GB, free: 6.988 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008739/0.4935, allocations: 173.7 kB / 0.508 GB, free: 6.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001686/0.4952, allocations: 0.5683 MB / 0.5085 GB, free: 6.219 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004835/0.4957, allocations: 0.8073 MB / 0.5093 GB, free: 5.383 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001829/0.4959, allocations: 35.42 kB / 0.5094 GB, free: 5.348 MB / 362.7 MB Notification: Performance of SimCode: time 1.112e-06/0.4959, allocations: 0 / 0.5094 GB, free: 5.348 MB / 362.7 MB Notification: Performance of Templates: time 0.01029/0.5062, allocations: 3.644 MB / 0.5129 GB, free: 1.703 MB / 362.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/jenkins1/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