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.001565/0.001564, allocations: 186.4 kB / 16.44 MB, free: 5.691 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.927/1.927, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.001117/0.001117, allocations: 94.84 kB / 270.9 MB, free: 8.363 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.1004/0.1004, allocations: 12.6 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005253/0.000525, allocations: 16 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08588/0.08642, allocations: 50.38 MB / 442.3 MB, free: 16.49 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.418/0.5045, allocations: 80.08 MB / 0.5102 GB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000238/0.5048, allocations: 73.95 kB / 0.5102 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01534/0.5201, allocations: 3.679 MB / 0.5138 GB, free: 11.08 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.893e-06/0.5202, allocations: 3.938 kB / 0.5138 GB, free: 11.08 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.101e-05/0.5202, allocations: 7.688 kB / 0.5139 GB, free: 11.08 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.001195/0.5214, allocations: 0.5985 MB / 0.5144 GB, free: 10.57 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.969e-05/0.5215, allocations: 7.656 kB / 0.5144 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.857e-05/0.5216, allocations: 31.03 kB / 0.5145 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004606/0.522, allocations: 307.5 kB / 0.5148 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.671e-05/0.5221, allocations: 7.875 kB / 0.5148 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.813e-05/0.5221, allocations: 22.2 kB / 0.5148 GB, free: 10.3 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008112/0.523, allocations: 382 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.261e-05/0.523, allocations: 0 / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.311e-05/0.523, allocations: 3.812 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.714e-06/0.523, allocations: 3.812 kB / 0.5152 GB, free: 10.12 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003237/0.5234, allocations: 92.23 kB / 0.5153 GB, free: 10.11 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008046/0.5242, allocations: 0.5355 MB / 0.5158 GB, free: 9.648 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000967/0.5252, allocations: 321.5 kB / 0.5161 GB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.146e-05/0.5252, allocations: 3.938 kB / 0.5161 GB, free: 9.535 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.059e-05/0.5253, allocations: 38 kB / 0.5161 GB, free: 9.492 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.525e-06/0.5253, allocations: 0 / 0.5161 GB, free: 9.492 MB / 330.7 MB Notification: Performance of matching and sorting (n=36): time 0.003033/0.5283, allocations: 1.24 MB / 0.5173 GB, free: 8.855 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.5285, allocations: 141.8 kB / 0.5175 GB, free: 8.715 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004236/0.5289, allocations: 296.7 kB / 0.5178 GB, free: 8.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.034e-05/0.5289, allocations: 33.52 kB / 0.5178 GB, free: 8.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.187e-05/0.529, allocations: 189.8 kB / 0.518 GB, free: 8.402 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.49e-05/0.5291, allocations: 44.69 kB / 0.518 GB, free: 8.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.947e-05/0.5291, allocations: 11.72 kB / 0.518 GB, free: 8.371 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.616e-05/0.5292, allocations: 328.6 kB / 0.5183 GB, free: 8.051 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001889/0.5294, allocations: 66.97 kB / 0.5184 GB, free: 8.043 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002929/0.5297, allocations: 287.6 kB / 0.5187 GB, free: 7.734 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000272/0.53, allocations: 118.2 kB / 0.5188 GB, free: 7.711 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.25e-06/0.53, allocations: 3.844 kB / 0.5188 GB, free: 7.711 MB / 330.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007433/0.5307, allocations: 362.8 kB / 0.5191 GB, free: 7.586 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.099e-05/0.5308, allocations: 7.844 kB / 0.5191 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.5308, allocations: 7.688 kB / 0.5192 GB, free: 7.586 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.553e-05/0.5308, allocations: 16.41 kB / 0.5192 GB, free: 7.582 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004498/0.5313, allocations: 93.39 kB / 0.5193 GB, free: 7.539 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.778e-05/0.5313, allocations: 15.94 kB / 0.5193 GB, free: 7.523 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003385/0.5317, allocations: 23.02 kB / 0.5193 GB, free: 7.508 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.061e-05/0.5317, allocations: 23.98 kB / 0.5193 GB, free: 7.484 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 () * Number of clocked states: 6 (filter.x[1],invMixingUnit.T,invMixingUnit.c,$DER.filter.x[1],$DER.invMixingUnit.c,$DER.invMixingUnit.T) * 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.0002131/0.5319, allocations: 166.7 kB / 0.5195 GB, free: 7.332 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006705/0.5326, allocations: 274.4 kB / 0.5197 GB, free: 7.129 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008913/0.5335, allocations: 364.3 kB / 0.5201 GB, free: 6.883 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.5336, allocations: 4 kB / 0.5201 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.102e-06/0.5336, allocations: 0 / 0.5201 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.5336, allocations: 3.984 kB / 0.5201 GB, free: 6.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004292/0.534, allocations: 321.9 kB / 0.5204 GB, free: 6.566 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.541e-06/0.534, allocations: 7.984 kB / 0.5204 GB, free: 6.559 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009583/0.535, allocations: 115.3 kB / 0.5205 GB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.535, allocations: 0 / 0.5205 GB, free: 6.449 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.185e-05/0.5351, allocations: 11.3 kB / 0.5205 GB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.5351, allocations: 8.078 kB / 0.5205 GB, free: 6.434 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.579e-06/0.5351, allocations: 8.047 kB / 0.5205 GB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001338/0.5364, allocations: 0.7098 MB / 0.5212 GB, free: 5.848 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.858e-05/0.5366, allocations: 116.3 kB / 0.5213 GB, free: 5.719 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.798e-05/0.5366, allocations: 15.48 kB / 0.5214 GB, free: 5.711 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000383/0.537, allocations: 11.73 kB / 0.5214 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.711e-05/0.5371, allocations: 7.953 kB / 0.5214 GB, free: 5.695 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.1e-05/0.5371, allocations: 11.19 kB / 0.5214 GB, free: 5.688 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0003278/0.5375, allocations: 249.4 kB / 0.5216 GB, free: 5.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.5375, allocations: 0 / 0.5216 GB, free: 5.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005796/0.5381, allocations: 69.94 kB / 0.5217 GB, free: 5.438 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 () * Number of clocked states: 6 ($DER.invMixingUnit.T,$DER.invMixingUnit.c,$DER.filter.x[1],invMixingUnit.c,invMixingUnit.T,filter.x[1]) * 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.000137/0.5382, allocations: 110.2 kB / 0.5218 GB, free: 5.328 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006778/0.5389, allocations: 280.5 kB / 0.5221 GB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.5389, allocations: 0 / 0.5221 GB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001072/0.5391, allocations: 34.73 kB / 0.5221 GB, free: 5.086 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007467/0.5398, allocations: 187.3 kB / 0.5223 GB, free: 4.957 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001581/0.5414, allocations: 0.8593 MB / 0.5231 GB, free: 4.125 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.5417, allocations: 0.811 MB / 0.5239 GB, free: 3.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001357/0.5418, allocations: 30.31 kB / 0.5239 GB, free: 3.266 MB / 330.7 MB Notification: Performance of SimCode: time 1.533e-06/0.5418, allocations: 0 / 0.5239 GB, free: 3.266 MB / 330.7 MB Notification: Performance of Templates: time 0.007591/0.5494, allocations: 3.686 MB / 0.5275 GB, free: 15.61 MB / 346.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