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.001079/0.001079, allocations: 178.9 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.548/1.548, allocations: 205.4 MB / 222.6 MB, free: 9.102 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.0007431/0.0007433, allocations: 92.8 kB / 270.9 MB, free: 8.34 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.06726/0.06726, allocations: 12.59 MB / 331.8 MB, free: 11.37 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003935/0.0003935, allocations: 12 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06849/0.0689, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.001692/0.07064, allocations: 1.833 MB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007708/0.07143, allocations: 0.6209 MB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000105/0.07155, allocations: 4 kB / 444.8 MB, free: 13.98 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.278e-05/0.07164, allocations: 15.8 kB / 444.8 MB, free: 13.96 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002036/0.07185, allocations: 55.62 kB / 444.9 MB, free: 13.91 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002072/0.07207, allocations: 55.88 kB / 444.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001967/0.07227, allocations: 258.8 kB / 445.2 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.07239, allocations: 64.64 kB / 445.3 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001082/0.07251, allocations: 91.5 kB / 445.4 MB, free: 13.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001176/0.07263, allocations: 127.2 kB / 445.5 MB, free: 13.32 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.132e-05/0.07267, allocations: 12 kB / 445.5 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.735e-05/0.0727, allocations: 12 kB / 445.5 MB, free: 13.3 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.269e-05/0.07275, allocations: 51.73 kB / 445.6 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.834e-05/0.0728, allocations: 61.52 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000149/0.07295, allocations: 171.8 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.07296, allocations: 0 / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.713e-06/0.07297, allocations: 0 / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.139e-06/0.07298, allocations: 0 / 445.8 MB, free: 13.02 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.0008299/0.07382, allocations: 0.584 MB / 446.4 MB, free: 12.38 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.174e-05/0.07386, allocations: 12.03 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.07391, allocations: 35.62 kB / 446.4 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002758/0.07419, allocations: 303.2 kB / 446.7 MB, free: 12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.346e-05/0.07422, allocations: 20.22 kB / 446.7 MB, free: 11.98 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.505e-05/0.07426, allocations: 19.98 kB / 446.7 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.07479, allocations: 380.7 kB / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.465e-06/0.07481, allocations: 0 / 447.1 MB, free: 11.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.707e-05/0.07483, allocations: 4 kB / 447.1 MB, free: 11.56 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.436e-06/0.07484, allocations: 7.938 kB / 447.1 MB, free: 11.55 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001752/0.07503, allocations: 91.95 kB / 447.2 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005072/0.07554, allocations: 0.5326 MB / 447.8 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005709/0.07613, allocations: 307.8 kB / 448.1 MB, free: 10.55 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001772/0.07631, allocations: 142.9 kB / 448.2 MB, free: 10.4 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.731e-05/0.07635, allocations: 7.938 kB / 448.2 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.51e-05/0.07637, allocations: 42.56 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.863e-06/0.07638, allocations: 0 / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001912/0.0783, allocations: 1.331 MB / 449.6 MB, free: 8.914 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.011e-05/0.07838, allocations: 138.5 kB / 449.7 MB, free: 8.754 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002702/0.07866, allocations: 328.6 kB / 450 MB, free: 8.418 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.94e-05/0.07868, allocations: 37.7 kB / 450.1 MB, free: 8.375 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.458e-05/0.07874, allocations: 145 kB / 450.2 MB, free: 8.23 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.684e-05/0.07879, allocations: 55.56 kB / 450.3 MB, free: 8.176 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.357e-06/0.0788, allocations: 7.938 kB / 450.3 MB, free: 8.168 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.391e-05/0.07886, allocations: 346.8 kB / 450.6 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.07898, allocations: 72.83 kB / 450.7 MB, free: 7.75 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.07917, allocations: 318.7 kB / 451 MB, free: 7.312 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001612/0.07934, allocations: 131.8 kB / 451.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.404e-06/0.07935, allocations: 0.6562 kB / 451.1 MB, free: 7.184 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000472/0.07983, allocations: 420.9 kB / 451.5 MB, free: 6.766 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.579e-05/0.07985, allocations: 12 kB / 451.5 MB, free: 6.754 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.716e-06/0.07987, allocations: 8 kB / 451.5 MB, free: 6.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.07989, allocations: 12 kB / 451.6 MB, free: 6.734 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000232/0.08013, allocations: 91.84 kB / 451.7 MB, free: 6.645 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.3e-05/0.08015, allocations: 23.86 kB / 451.7 MB, free: 6.621 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002141/0.08037, allocations: 32.31 kB / 451.7 MB, free: 6.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.008e-05/0.08039, allocations: 24 kB / 451.7 MB, free: 6.566 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.000118/0.08052, allocations: 170.2 kB / 451.9 MB, free: 6.391 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003652/0.08089, allocations: 292.9 kB / 452.2 MB, free: 6.098 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005697/0.08147, allocations: 376.2 kB / 452.5 MB, free: 5.723 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.149e-06/0.08148, allocations: 7.984 kB / 452.6 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.378e-06/0.08149, allocations: 0 / 452.6 MB, free: 5.715 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.08151, allocations: 8 kB / 452.6 MB, free: 5.707 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002715/0.08178, allocations: 317.4 kB / 452.9 MB, free: 5.348 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.08179, allocations: 3.938 kB / 452.9 MB, free: 5.344 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005272/0.08232, allocations: 127.9 kB / 453 MB, free: 5.219 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.08234, allocations: 7.953 kB / 453 MB, free: 5.211 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.123e-05/0.08237, allocations: 11.98 kB / 453 MB, free: 5.199 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.136e-06/0.08237, allocations: 4 kB / 453 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.654e-06/0.08238, allocations: 0 / 453 MB, free: 5.195 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007556/0.08314, allocations: 0.7107 MB / 453.7 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.908e-05/0.08321, allocations: 116.7 kB / 453.9 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.821e-05/0.08327, allocations: 23.88 kB / 453.9 MB, free: 4.309 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002441/0.08352, allocations: 12.06 kB / 453.9 MB, free: 4.297 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.35e-05/0.08356, allocations: 7.984 kB / 453.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.904e-05/0.08358, allocations: 12 kB / 453.9 MB, free: 4.277 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000182/0.08377, allocations: 243.1 kB / 454.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.08377, allocations: 0 / 454.1 MB, free: 4.043 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003799/0.08416, allocations: 64 kB / 454.2 MB, free: 3.98 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.435e-05/0.08425, allocations: 119.1 kB / 454.3 MB, free: 3.855 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004141/0.08467, allocations: 293.2 kB / 454.6 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.573e-06/0.08468, allocations: 0.625 kB / 454.6 MB, free: 3.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.019e-05/0.08475, allocations: 39.92 kB / 454.6 MB, free: 3.531 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006317/0.08539, allocations: 204.9 kB / 454.8 MB, free: 3.332 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001035/0.08643, allocations: 0.9052 MB / 455.8 MB, free: 2.391 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001774/0.08662, allocations: 0.8195 MB / 456.6 MB, free: 1.547 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.951e-05/0.08671, allocations: 27.44 kB / 456.6 MB, free: 1.52 MB / 298.7 MB Notification: Performance of SimCode: time 4.51e-07/0.08672, allocations: 3.938 kB / 456.6 MB, free: 1.516 MB / 298.7 MB Notification: Performance of Templates: time 0.005068/0.09179, allocations: 3.88 MB / 460.5 MB, free: 13.63 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