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.002511/0.002511, allocations: 181 kB / 13.7 MB, free: 1.625 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.072/2.072, allocations: 205.2 MB / 219.4 MB, free: 14.26 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.001094/0.001094, allocations: 78.72 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09583/0.09583, allocations: 12.6 MB / 328.2 MB, free: 11.15 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.33e-05/4.341e-05, allocations: 8 kB / 386 MB, free: 1.312 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3071/0.3072, allocations: 50.36 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1464/0.4536, allocations: 80 MB / 0.5042 GB, free: 14.04 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003815/0.4541, allocations: 71.97 kB / 0.5043 GB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02691/0.481, allocations: 3.675 MB / 0.5079 GB, free: 10.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.515e-06/0.4811, allocations: 0 / 0.5079 GB, free: 10.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 3.343e-05/0.4811, allocations: 4 kB / 0.5079 GB, free: 10.27 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.001402/0.4826, allocations: 0.5057 MB / 0.5084 GB, free: 9.715 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.574e-05/0.4827, allocations: 8.031 kB / 0.5084 GB, free: 9.707 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001843/0.4829, allocations: 31.62 kB / 0.5084 GB, free: 9.676 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000935/0.4838, allocations: 308.1 kB / 0.5087 GB, free: 9.332 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.281e-05/0.4839, allocations: 12.28 kB / 0.5087 GB, free: 9.32 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.602e-05/0.484, allocations: 15.95 kB / 0.5087 GB, free: 9.305 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0014/0.4854, allocations: 362.2 kB / 0.5091 GB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.4855, allocations: 0 / 0.5091 GB, free: 8.93 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.384e-05/0.4856, allocations: 8 kB / 0.5091 GB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.026e-05/0.4856, allocations: 0 / 0.5091 GB, free: 8.922 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004008/0.486, allocations: 79.94 kB / 0.5092 GB, free: 8.844 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001609/0.4876, allocations: 0.5248 MB / 0.5097 GB, free: 8.262 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.4894, allocations: 312.3 kB / 0.51 GB, free: 7.93 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005609/0.49, allocations: 131.1 kB / 0.5101 GB, free: 7.793 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.604e-05/0.4901, allocations: 15.92 kB / 0.5101 GB, free: 7.777 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.83e-05/0.4902, allocations: 54.42 kB / 0.5102 GB, free: 7.715 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 4.939e-06/0.4902, allocations: 0 / 0.5102 GB, free: 7.715 MB / 362.7 MB Notification: Performance of matching and sorting (n=36): time 0.004092/0.4943, allocations: 1.14 MB / 0.5113 GB, free: 6.48 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001458/0.4945, allocations: 139.2 kB / 0.5114 GB, free: 6.32 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005448/0.4951, allocations: 294.8 kB / 0.5117 GB, free: 6.027 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 4.647e-05/0.4952, allocations: 33.7 kB / 0.5117 GB, free: 5.988 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001169/0.4953, allocations: 187.3 kB / 0.5119 GB, free: 5.805 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.885e-05/0.4954, allocations: 51.56 kB / 0.512 GB, free: 5.754 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.112e-05/0.4954, allocations: 8 kB / 0.512 GB, free: 5.746 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001914/0.4956, allocations: 330.8 kB / 0.5123 GB, free: 5.414 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001912/0.4958, allocations: 56.88 kB / 0.5123 GB, free: 5.359 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003937/0.4962, allocations: 283 kB / 0.5126 GB, free: 4.973 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002797/0.4965, allocations: 103.9 kB / 0.5127 GB, free: 4.871 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.335e-06/0.4965, allocations: 4 kB / 0.5127 GB, free: 4.867 MB / 362.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000874/0.4974, allocations: 344.7 kB / 0.513 GB, free: 4.523 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.696e-05/0.4975, allocations: 9 kB / 0.5131 GB, free: 4.516 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.069e-05/0.4975, allocations: 8 kB / 0.5131 GB, free: 4.508 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.596e-05/0.4976, allocations: 19.98 kB / 0.5131 GB, free: 4.488 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005367/0.4981, allocations: 87.84 kB / 0.5132 GB, free: 4.402 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.465e-05/0.4982, allocations: 23.95 kB / 0.5132 GB, free: 4.379 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003997/0.4986, allocations: 23.92 kB / 0.5132 GB, free: 4.355 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.06e-05/0.4986, allocations: 20 kB / 0.5132 GB, free: 4.336 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.0001749/0.4988, allocations: 140.6 kB / 0.5134 GB, free: 4.191 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007492/0.4996, allocations: 273 kB / 0.5136 GB, free: 3.918 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009856/0.5006, allocations: 353.2 kB / 0.514 GB, free: 3.566 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.338e-05/0.5006, allocations: 4 kB / 0.514 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.034e-05/0.5007, allocations: 0 / 0.514 GB, free: 3.562 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.5007, allocations: 11.94 kB / 0.514 GB, free: 3.551 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006037/0.5013, allocations: 321.3 kB / 0.5143 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.408e-06/0.5013, allocations: 0 / 0.5143 GB, free: 3.188 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00109/0.5024, allocations: 119.8 kB / 0.5144 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.377e-05/0.5024, allocations: 4 kB / 0.5144 GB, free: 3.066 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.129e-05/0.5025, allocations: 8 kB / 0.5144 GB, free: 3.059 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.789e-06/0.5025, allocations: 11.92 kB / 0.5144 GB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.5025, allocations: 0 / 0.5144 GB, free: 3.047 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001438/0.504, allocations: 0.6741 MB / 0.5151 GB, free: 2.34 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001635/0.5042, allocations: 124.6 kB / 0.5152 GB, free: 2.199 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.547e-05/0.5043, allocations: 16 kB / 0.5152 GB, free: 2.184 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004668/0.5048, allocations: 11.95 kB / 0.5152 GB, free: 2.172 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.5048, allocations: 11.92 kB / 0.5152 GB, free: 2.16 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.685e-05/0.5049, allocations: 12 kB / 0.5152 GB, free: 2.148 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0004197/0.5053, allocations: 242.2 kB / 0.5155 GB, free: 1.91 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.11e-07/0.5053, allocations: 3.938 kB / 0.5155 GB, free: 1.906 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006201/0.506, allocations: 64 kB / 0.5155 GB, free: 1.844 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.0001796/0.5062, allocations: 103.2 kB / 0.5156 GB, free: 1.734 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0007242/0.5069, allocations: 264.8 kB / 0.5159 GB, free: 1.477 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.5069, allocations: 4.625 kB / 0.5159 GB, free: 1.473 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 7.832e-05/0.507, allocations: 23.94 kB / 0.5159 GB, free: 1.449 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000873/0.5079, allocations: 180.9 kB / 0.5161 GB, free: 1.273 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001801/0.5097, allocations: 0.5826 MB / 0.5167 GB, free: 0.6562 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.2735/0.7833, allocations: 0.8104 MB / 0.5175 GB, free: 86.67 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.7836, allocations: 31.08 kB / 0.5175 GB, free: 86.66 MB / 362.7 MB Notification: Performance of SimCode: time 1.573e-06/0.7836, allocations: 0 / 0.5175 GB, free: 86.66 MB / 362.7 MB Notification: Performance of Templates: time 0.01222/0.7959, allocations: 3.681 MB / 0.5211 GB, free: 86.54 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