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/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/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.002167/0.002167, allocations: 180.9 kB / 17.46 MB, free: 4.355 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.713/2.713, allocations: 205.4 MB / 223.6 MB, free: 9.004 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.001181/0.001182, allocations: 98.28 kB / 272 MB, free: 8.234 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1526/0.1526, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004974/0.0004976, allocations: 16 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.156/0.1565, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5592/0.7157, allocations: 80.05 MB / 0.5108 GB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002957/0.7161, allocations: 77.62 kB / 0.5109 GB, free: 12.83 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0117/0.7278, allocations: 3.683 MB / 0.5145 GB, free: 11.37 MB / 330.7 MB Notification: Performance of FrontEnd: time 4.268e-06/0.7279, allocations: 0 / 0.5145 GB, free: 11.37 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.529e-05/0.728, allocations: 3.812 kB / 0.5145 GB, free: 11.37 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.001128/0.7291, allocations: 0.5994 MB / 0.515 GB, free: 10.85 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.621e-05/0.7292, allocations: 7.75 kB / 0.5151 GB, free: 10.85 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.54e-05/0.7292, allocations: 36.06 kB / 0.5151 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004164/0.7297, allocations: 316.4 kB / 0.5154 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.084e-05/0.7297, allocations: 8.688 kB / 0.5154 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.334e-05/0.7297, allocations: 15.03 kB / 0.5154 GB, free: 10.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009133/0.7307, allocations: 380 kB / 0.5158 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.7307, allocations: 3.938 kB / 0.5158 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.721e-05/0.7307, allocations: 5.938 kB / 0.5158 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.856e-06/0.7307, allocations: 3.781 kB / 0.5158 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002485/0.731, allocations: 96.08 kB / 0.5159 GB, free: 10.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007485/0.7318, allocations: 0.5342 MB / 0.5164 GB, free: 9.922 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006786/0.7325, allocations: 308.4 kB / 0.5167 GB, free: 9.816 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002763/0.7327, allocations: 153.8 kB / 0.5168 GB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.393e-05/0.7328, allocations: 3.844 kB / 0.5168 GB, free: 9.762 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.7329, allocations: 37.69 kB / 0.5169 GB, free: 9.723 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 2.084e-06/0.7329, allocations: 0 / 0.5169 GB, free: 9.723 MB / 330.7 MB Notification: Performance of matching and sorting (n=38): time 0.00308/0.736, allocations: 1.286 MB / 0.5181 GB, free: 9.07 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000155/0.7361, allocations: 133 kB / 0.5183 GB, free: 8.938 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004294/0.7366, allocations: 333.1 kB / 0.5186 GB, free: 8.797 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.786e-05/0.7366, allocations: 29.39 kB / 0.5186 GB, free: 8.766 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.871e-05/0.7367, allocations: 150.4 kB / 0.5188 GB, free: 8.672 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.033e-05/0.7368, allocations: 48.91 kB / 0.5188 GB, free: 8.645 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.609e-05/0.7368, allocations: 6.125 kB / 0.5188 GB, free: 8.645 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.000155/0.737, allocations: 351.4 kB / 0.5191 GB, free: 8.316 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001316/0.7371, allocations: 75.33 kB / 0.5192 GB, free: 8.301 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002661/0.7374, allocations: 295.8 kB / 0.5195 GB, free: 7.98 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004303/0.7378, allocations: 406.3 kB / 0.5199 GB, free: 7.625 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.625e-06/0.7379, allocations: 0 / 0.5199 GB, free: 7.625 MB / 330.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0005529/0.7384, allocations: 394.3 kB / 0.5203 GB, free: 7.488 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.298e-05/0.7385, allocations: 11.64 kB / 0.5203 GB, free: 7.484 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.611e-05/0.7385, allocations: 19.69 kB / 0.5203 GB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.931e-05/0.7385, allocations: 12.38 kB / 0.5203 GB, free: 7.473 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002636/0.7388, allocations: 96.06 kB / 0.5204 GB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.562e-05/0.7388, allocations: 15.45 kB / 0.5204 GB, free: 7.445 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002191/0.7391, allocations: 23 kB / 0.5204 GB, free: 7.441 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.002e-05/0.7391, allocations: 21.78 kB / 0.5205 GB, free: 7.441 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (49): * Single equations (assignments): 49 * 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.000207/0.7393, allocations: 169.8 kB / 0.5206 GB, free: 7.305 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004853/0.7398, allocations: 290 kB / 0.5209 GB, free: 7.133 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007065/0.7405, allocations: 369.1 kB / 0.5212 GB, free: 6.879 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.7405, allocations: 7.938 kB / 0.5213 GB, free: 6.871 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.7406, allocations: 4 kB / 0.5213 GB, free: 6.867 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.768e-06/0.7406, allocations: 7.922 kB / 0.5213 GB, free: 6.859 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003933/0.741, allocations: 317.4 kB / 0.5216 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.205e-06/0.741, allocations: 0 / 0.5216 GB, free: 6.555 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000537/0.7415, allocations: 119.7 kB / 0.5217 GB, free: 6.441 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.48e-06/0.7415, allocations: 4 kB / 0.5217 GB, free: 6.438 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.388e-05/0.7416, allocations: 19.61 kB / 0.5217 GB, free: 6.426 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.078e-06/0.7416, allocations: 4.703 kB / 0.5217 GB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.354e-06/0.7416, allocations: 0 / 0.5217 GB, free: 6.422 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000921/0.7425, allocations: 0.6984 MB / 0.5224 GB, free: 5.867 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.015e-05/0.7426, allocations: 120.4 kB / 0.5225 GB, free: 5.734 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.816e-05/0.7427, allocations: 18.48 kB / 0.5225 GB, free: 5.723 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.7429, allocations: 11 kB / 0.5225 GB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.371e-05/0.743, allocations: 3.375 kB / 0.5225 GB, free: 5.715 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.375e-05/0.743, allocations: 11.98 kB / 0.5225 GB, free: 5.703 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000236/0.7433, allocations: 246.8 kB / 0.5228 GB, free: 5.52 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.7433, allocations: 0 / 0.5228 GB, free: 5.52 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004506/0.7437, allocations: 61.44 kB / 0.5228 GB, free: 5.469 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 (43): * Single equations (assignments): 43 * 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.0001745/0.7439, allocations: 112.7 kB / 0.5229 GB, free: 5.352 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005963/0.7445, allocations: 287.2 kB / 0.5232 GB, free: 5.137 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.647e-06/0.7445, allocations: 4 kB / 0.5232 GB, free: 5.133 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 6.7e-05/0.7446, allocations: 23.42 kB / 0.5232 GB, free: 5.113 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008455/0.7455, allocations: 210.8 kB / 0.5234 GB, free: 4.965 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001395/0.7469, allocations: 0.8849 MB / 0.5243 GB, free: 4.121 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004227/0.7473, allocations: 0.8065 MB / 0.5251 GB, free: 3.293 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.794e-05/0.7474, allocations: 27.44 kB / 0.5251 GB, free: 3.266 MB / 330.7 MB Notification: Performance of SimCode: time 7.21e-07/0.7474, allocations: 0 / 0.5251 GB, free: 3.266 MB / 330.7 MB Notification: Performance of Templates: time 0.006687/0.7541, allocations: 3.829 MB / 0.5289 GB, free: 15.47 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