Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.0009886/0.0009887, allocations: 175.3 kB / 16.45 MB, free: 5.684 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.254/1.254, 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.0006793/0.0006794, allocations: 93.11 kB / 270.9 MB, free: 8.348 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.06621/0.06621, allocations: 12.59 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004389/0.0004389, allocations: 12 kB / 392.6 MB, free: 66.24 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07115/0.0716, allocations: 50.38 MB / 443 MB, free: 15.8 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.001777/0.07342, allocations: 1.844 MB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008208/0.07427, allocations: 0.6092 MB / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.998e-05/0.07438, allocations: 0 / 445.5 MB, free: 13.33 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.399e-05/0.07447, allocations: 15.8 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002285/0.07471, allocations: 67.55 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002088/0.07493, allocations: 59.92 kB / 445.6 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002014/0.07514, allocations: 250.8 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001192/0.07526, allocations: 60.69 kB / 445.9 MB, free: 12.89 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001079/0.07538, allocations: 91.45 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001234/0.07551, allocations: 135.3 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.07555, allocations: 8 kB / 446.1 MB, free: 12.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.017e-05/0.07559, allocations: 12 kB / 446.2 MB, free: 12.64 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.988e-05/0.07563, allocations: 47.7 kB / 446.2 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.73e-05/0.07567, allocations: 61.52 kB / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001322/0.07581, allocations: 183.8 kB / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.069e-06/0.07583, allocations: 0 / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.262e-06/0.07583, allocations: 0 / 446.4 MB, free: 12.35 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.259e-06/0.07584, allocations: 0 / 446.4 MB, free: 12.35 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.0008517/0.0767, allocations: 0.584 MB / 447 MB, free: 11.72 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.203e-05/0.07674, allocations: 8.031 kB / 447 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.097e-05/0.07679, allocations: 31.62 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002845/0.07708, allocations: 315.1 kB / 447.4 MB, free: 11.33 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.136e-05/0.0771, allocations: 12.28 kB / 447.4 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.245e-05/0.07714, allocations: 16 kB / 447.4 MB, free: 11.3 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005251/0.07767, allocations: 380.6 kB / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.07769, allocations: 0 / 447.8 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.704e-05/0.07772, allocations: 8 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.256e-06/0.07773, allocations: 4 kB / 447.8 MB, free: 10.9 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001773/0.07791, allocations: 91.95 kB / 447.9 MB, free: 10.81 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005325/0.07845, allocations: 0.5325 MB / 448.4 MB, free: 10.22 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005871/0.07905, allocations: 319.9 kB / 448.7 MB, free: 9.879 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.07925, allocations: 142.8 kB / 448.9 MB, free: 9.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.861e-05/0.07928, allocations: 4 kB / 448.9 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.529e-05/0.07931, allocations: 38.55 kB / 448.9 MB, free: 9.68 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 2.234e-06/0.07931, allocations: 3.984 kB / 448.9 MB, free: 9.676 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001922/0.08124, allocations: 1.327 MB / 450.2 MB, free: 8.254 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.621e-05/0.08135, allocations: 150.3 kB / 450.4 MB, free: 8.082 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003003/0.08166, allocations: 332.6 kB / 450.7 MB, free: 7.742 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.133e-05/0.08169, allocations: 29.7 kB / 450.7 MB, free: 7.707 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.502e-05/0.08176, allocations: 149.1 kB / 450.9 MB, free: 7.559 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.12e-05/0.0818, allocations: 47.53 kB / 450.9 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.16e-05/0.08182, allocations: 12 kB / 450.9 MB, free: 7.5 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.407e-05/0.08192, allocations: 346.8 kB / 451.3 MB, free: 7.152 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.08205, allocations: 72.83 kB / 451.3 MB, free: 7.082 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.08227, allocations: 314.7 kB / 451.7 MB, free: 6.648 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001713/0.08245, allocations: 124.5 kB / 451.8 MB, free: 6.527 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.296e-06/0.08246, allocations: 4 kB / 451.8 MB, free: 6.523 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0005267/0.08299, allocations: 420.9 kB / 452.2 MB, free: 6.105 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.815e-05/0.08302, allocations: 8 kB / 452.2 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.308e-06/0.08303, allocations: 8 kB / 452.2 MB, free: 6.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.293e-05/0.08306, allocations: 12 kB / 452.2 MB, free: 6.078 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002382/0.08331, allocations: 103.8 kB / 452.3 MB, free: 5.977 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.483e-05/0.08333, allocations: 16.44 kB / 452.3 MB, free: 5.961 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002208/0.08356, allocations: 31.83 kB / 452.4 MB, free: 5.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.086e-05/0.08358, allocations: 24 kB / 452.4 MB, free: 5.906 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.0001293/0.08372, allocations: 173.4 kB / 452.6 MB, free: 5.727 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003675/0.08409, allocations: 296.8 kB / 452.9 MB, free: 5.43 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000517/0.08462, allocations: 376.2 kB / 453.2 MB, free: 5.055 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.08463, allocations: 8 kB / 453.2 MB, free: 5.047 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.08464, allocations: 4 kB / 453.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.65e-06/0.08465, allocations: 0 / 453.2 MB, free: 5.043 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002929/0.08495, allocations: 325.4 kB / 453.5 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.314e-06/0.08496, allocations: 0 / 453.5 MB, free: 4.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005345/0.0855, allocations: 123.8 kB / 453.7 MB, free: 4.555 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.879e-06/0.08552, allocations: 7.953 kB / 453.7 MB, free: 4.547 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.171e-05/0.08554, allocations: 8 kB / 453.7 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.755e-06/0.08555, allocations: 0 / 453.7 MB, free: 4.539 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.08556, allocations: 4 kB / 453.7 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007675/0.08633, allocations: 0.7224 MB / 454.4 MB, free: 3.793 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.575e-05/0.0864, allocations: 108.6 kB / 454.5 MB, free: 3.668 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.784e-05/0.08645, allocations: 15.95 kB / 454.5 MB, free: 3.652 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002512/0.08671, allocations: 24.05 kB / 454.6 MB, free: 3.629 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.568e-05/0.08675, allocations: 4 kB / 454.6 MB, free: 3.625 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.863e-05/0.08678, allocations: 8 kB / 454.6 MB, free: 3.617 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001833/0.08696, allocations: 251 kB / 454.8 MB, free: 3.375 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08697, allocations: 0 / 454.8 MB, free: 3.375 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004047/0.08738, allocations: 60 kB / 454.9 MB, free: 3.316 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 8.89e-05/0.08748, allocations: 107.1 kB / 455 MB, free: 3.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.0879, allocations: 297.8 kB / 455.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.08791, allocations: 0 / 455.3 MB, free: 2.914 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.987e-05/0.08798, allocations: 36.05 kB / 455.3 MB, free: 2.879 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006449/0.08863, allocations: 208.9 kB / 455.5 MB, free: 2.676 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001105/0.08975, allocations: 0.9091 MB / 456.4 MB, free: 1.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002078/0.08997, allocations: 0.8156 MB / 457.2 MB, free: 0.8906 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.714e-05/0.09006, allocations: 35.42 kB / 457.3 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of SimCode: time 2.1e-07/0.09007, allocations: 0 / 457.3 MB, free: 0.8555 MB / 298.7 MB Notification: Performance of Templates: time 0.005477/0.09555, allocations: 3.877 MB / 461.1 MB, free: 12.97 MB / 314.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches