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.001754/0.001754, allocations: 175.2 kB / 16.77 MB, free: 5.047 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.371/1.371, allocations: 205.4 MB / 222.9 MB, free: 9.016 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.0007332/0.0007332, allocations: 89.05 kB / 271.3 MB, free: 8.254 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.06572/0.06572, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003987/0.0003988, allocations: 23.98 kB / 392.6 MB, free: 66.57 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07384/0.07425, allocations: 50.37 MB / 443 MB, free: 16.15 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.001738/0.07604, allocations: 1.852 MB / 444.8 MB, free: 14.28 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007667/0.07683, allocations: 0.5937 MB / 445.4 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.07694, allocations: 7.938 kB / 445.4 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.197e-05/0.07705, allocations: 23.8 kB / 445.4 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002158/0.07727, allocations: 55.61 kB / 445.5 MB, free: 13.59 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002055/0.07748, allocations: 55.88 kB / 445.5 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001951/0.07768, allocations: 254.9 kB / 445.8 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001312/0.07782, allocations: 60.94 kB / 445.8 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001124/0.07794, allocations: 99.44 kB / 445.9 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.07807, allocations: 127.3 kB / 446.1 MB, free: 13.01 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.303e-05/0.07812, allocations: 12 kB / 446.1 MB, free: 13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.592e-05/0.07815, allocations: 8 kB / 446.1 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.418e-05/0.0782, allocations: 51.7 kB / 446.1 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.602e-05/0.07828, allocations: 136.9 kB / 446.3 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001298/0.07842, allocations: 175.8 kB / 446.4 MB, free: 12.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.419e-06/0.07843, allocations: 4 kB / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.182e-06/0.07843, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.07844, allocations: 0 / 446.4 MB, free: 12.62 MB / 298.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.0008145/0.07926, allocations: 0.5803 MB / 447 MB, free: 12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.225e-05/0.0793, allocations: 8.031 kB / 447 MB, free: 11.99 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.14e-05/0.07936, allocations: 32.56 kB / 447.1 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.07964, allocations: 324.3 kB / 447.4 MB, free: 11.6 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.435e-05/0.07966, allocations: 16.34 kB / 447.4 MB, free: 11.58 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.352e-05/0.0797, allocations: 16 kB / 447.4 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005034/0.08021, allocations: 380.7 kB / 447.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.518e-06/0.08023, allocations: 0 / 447.8 MB, free: 11.17 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.08026, allocations: 8 kB / 447.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.08027, allocations: 4 kB / 447.8 MB, free: 11.16 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001782/0.08045, allocations: 95.89 kB / 447.9 MB, free: 11.07 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005125/0.08097, allocations: 0.5286 MB / 448.4 MB, free: 10.48 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005577/0.08154, allocations: 312.5 kB / 448.7 MB, free: 10.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001771/0.08173, allocations: 146.4 kB / 448.9 MB, free: 9.996 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.297e-05/0.08177, allocations: 15.98 kB / 448.9 MB, free: 9.98 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.447e-05/0.08179, allocations: 34.5 kB / 448.9 MB, free: 9.938 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.0818, allocations: 0 / 448.9 MB, free: 9.938 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001827/0.08363, allocations: 1.323 MB / 450.2 MB, free: 8.52 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.677e-05/0.08371, allocations: 138.7 kB / 450.4 MB, free: 8.359 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002611/0.08398, allocations: 332.7 kB / 450.7 MB, free: 8.023 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.911e-05/0.084, allocations: 33.7 kB / 450.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.535e-05/0.08407, allocations: 145.1 kB / 450.9 MB, free: 7.84 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.607e-05/0.08411, allocations: 51.47 kB / 450.9 MB, free: 7.789 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.149e-05/0.08412, allocations: 12 kB / 450.9 MB, free: 7.777 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.796e-05/0.08419, allocations: 350.8 kB / 451.3 MB, free: 7.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.08431, allocations: 64.84 kB / 451.3 MB, free: 7.363 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002013/0.08452, allocations: 318.7 kB / 451.7 MB, free: 6.926 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003046/0.08483, allocations: 428.9 kB / 452.1 MB, free: 6.387 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.577e-06/0.08484, allocations: 8.594 kB / 452.1 MB, free: 6.379 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0004693/0.08532, allocations: 412.4 kB / 452.5 MB, free: 5.969 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.613e-05/0.08534, allocations: 9 kB / 452.5 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.616e-06/0.08536, allocations: 8 kB / 452.5 MB, free: 5.953 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.056e-05/0.08538, allocations: 16 kB / 452.5 MB, free: 5.938 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000224/0.08561, allocations: 95.83 kB / 452.6 MB, free: 5.844 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/0.08563, allocations: 19.88 kB / 452.6 MB, free: 5.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000196/0.08583, allocations: 20 kB / 452.6 MB, free: 5.805 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.021e-05/0.08586, allocations: 20 kB / 452.7 MB, free: 5.785 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (51): * Single equations (assignments): 51 * 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.0001211/0.08599, allocations: 185.3 kB / 452.9 MB, free: 5.594 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003756/0.08637, allocations: 292.8 kB / 453.1 MB, free: 5.301 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005088/0.08689, allocations: 384.2 kB / 453.5 MB, free: 4.918 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.539e-06/0.0869, allocations: 4 kB / 453.5 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.518e-06/0.08691, allocations: 0 / 453.5 MB, free: 4.914 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.801e-06/0.08692, allocations: 4 kB / 453.5 MB, free: 4.91 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002687/0.08719, allocations: 321.3 kB / 453.8 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.124e-06/0.0872, allocations: 64 / 453.8 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005/0.08771, allocations: 131.8 kB / 454 MB, free: 4.418 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.476e-06/0.08772, allocations: 4 kB / 454 MB, free: 4.414 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.269e-05/0.08775, allocations: 12 kB / 454 MB, free: 4.402 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.116e-06/0.08776, allocations: 4 kB / 454 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.08777, allocations: 0 / 454 MB, free: 4.398 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007524/0.08852, allocations: 0.7148 MB / 454.7 MB, free: 3.664 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.663e-05/0.08859, allocations: 120.6 kB / 454.8 MB, free: 3.527 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.775e-05/0.08865, allocations: 12 kB / 454.8 MB, free: 3.516 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002232/0.08887, allocations: 8 kB / 454.8 MB, free: 3.508 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.793e-05/0.08892, allocations: 7.984 kB / 454.8 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.917e-05/0.08894, allocations: 12 kB / 454.9 MB, free: 3.488 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001823/0.08913, allocations: 247 kB / 455.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.01e-07/0.08914, allocations: 0 / 455.1 MB, free: 3.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003814/0.08953, allocations: 68.06 kB / 455.2 MB, free: 3.184 MB / 298.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 (45): * Single equations (assignments): 45 * 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 9.182e-05/0.08962, allocations: 111.1 kB / 455.3 MB, free: 3.066 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004077/0.09004, allocations: 293.6 kB / 455.6 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.09005, allocations: 0 / 455.6 MB, free: 2.781 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.704e-05/0.09011, allocations: 35.92 kB / 455.6 MB, free: 2.746 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006421/0.09076, allocations: 212.8 kB / 455.8 MB, free: 2.539 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00101/0.09178, allocations: 0.9082 MB / 456.7 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001871/0.09198, allocations: 0.8156 MB / 457.5 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.3e-05/0.09207, allocations: 27.44 kB / 457.5 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.09208, allocations: 0 / 457.5 MB, free: 0.7266 MB / 298.7 MB Notification: Performance of Templates: time 0.005081/0.09717, allocations: 3.878 MB / 461.4 MB, free: 12.84 MB / 314.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