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.002673/0.002679, allocations: 188.4 kB / 16.45 MB, free: 5.582 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 4.053/4.053, allocations: 205.4 MB / 222.6 MB, free: 13.84 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.002063/0.002063, allocations: 98.78 kB / 270.9 MB, free: 13.37 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.2286/0.2286, allocations: 12.59 MB / 331.8 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0009847/0.0009853, allocations: 17.88 kB / 392 MB, free: 54.93 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1547/0.1558, allocations: 50.37 MB / 442.3 MB, free: 11.61 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Systems.ControlledMixingUnit): time 0.003771/0.1596, allocations: 1.832 MB / 444.2 MB, free: 9.766 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.01033/0.1701, allocations: 0.6015 MB / 444.8 MB, free: 9.16 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000354/0.1705, allocations: 4 kB / 444.8 MB, free: 9.156 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001712/0.1707, allocations: 19.8 kB / 444.8 MB, free: 9.137 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005437/0.1713, allocations: 67.75 kB / 444.9 MB, free: 9.07 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005623/0.1719, allocations: 61.56 kB / 444.9 MB, free: 9.012 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006534/0.1725, allocations: 179.4 kB / 445.1 MB, free: 8.836 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002616/0.1728, allocations: 52.72 kB / 445.1 MB, free: 8.789 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003302/0.1732, allocations: 99.47 kB / 445.2 MB, free: 8.691 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000364/0.1736, allocations: 123.4 kB / 445.4 MB, free: 8.57 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 7.31e-05/0.1737, allocations: 8 kB / 445.4 MB, free: 8.562 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.249e-05/0.1738, allocations: 15.94 kB / 445.4 MB, free: 8.547 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 9.869e-05/0.1739, allocations: 47.8 kB / 445.4 MB, free: 8.5 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 9.857e-05/0.174, allocations: 65.52 kB / 445.5 MB, free: 8.43 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003664/0.1744, allocations: 176.4 kB / 445.7 MB, free: 8.258 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.677e-06/0.1744, allocations: 4 kB / 445.7 MB, free: 8.254 MB / 282.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.1745, allocations: 0 / 445.7 MB, free: 8.254 MB / 282.7 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.1745, allocations: 0 / 445.7 MB, free: 8.254 MB / 282.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.002051/0.1766, allocations: 0.5801 MB / 446.3 MB, free: 7.625 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.002e-05/0.1767, allocations: 8.031 kB / 446.3 MB, free: 7.617 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001899/0.1769, allocations: 39.61 kB / 446.3 MB, free: 7.578 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005086/0.182, allocations: 311.2 kB / 446.6 MB, free: 7.234 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.68e-05/0.1821, allocations: 8.281 kB / 446.6 MB, free: 7.227 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.086e-05/0.1822, allocations: 20 kB / 446.6 MB, free: 7.207 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001359/0.1836, allocations: 389.8 kB / 447 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.512e-05/0.1837, allocations: 0 / 447 MB, free: 6.805 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.016e-05/0.1837, allocations: 4 kB / 447 MB, free: 6.801 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.303e-05/0.1838, allocations: 4 kB / 447 MB, free: 6.797 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005108/0.1843, allocations: 91.89 kB / 447.1 MB, free: 6.707 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001671/0.186, allocations: 0.5326 MB / 447.6 MB, free: 6.117 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001615/0.1877, allocations: 315.9 kB / 448 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.472e-05/0.1878, allocations: 0 / 448 MB, free: 5.781 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.493e-05/0.1879, allocations: 42.56 kB / 448 MB, free: 5.73 MB / 282.7 MB Notification: Performance of pre-optimization done (n=29): time 3.928e-06/0.1879, allocations: 0 / 448 MB, free: 5.73 MB / 282.7 MB Notification: Performance of matching and sorting (n=34): time 0.009251/0.1972, allocations: 1.205 MB / 449.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.004332/0.2016, allocations: 146.6 kB / 449.3 MB, free: 4.266 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009042/0.2026, allocations: 324.6 kB / 449.7 MB, free: 3.934 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001049/0.2028, allocations: 37.7 kB / 449.7 MB, free: 3.891 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001454/0.203, allocations: 191.2 kB / 449.9 MB, free: 3.699 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.2031, allocations: 43.55 kB / 449.9 MB, free: 3.656 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.445e-05/0.2032, allocations: 4 kB / 449.9 MB, free: 3.652 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.2033, allocations: 330.9 kB / 450.3 MB, free: 3.32 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003467/0.2037, allocations: 64.7 kB / 450.3 MB, free: 3.254 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004617/0.2042, allocations: 277.7 kB / 450.6 MB, free: 2.883 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004259/0.2046, allocations: 107.9 kB / 450.7 MB, free: 2.777 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.2047, allocations: 4 kB / 450.7 MB, free: 2.773 MB / 282.7 MB Notification: Performance of matching and sorting (n=45) (initialization): time 0.001271/0.206, allocations: 357.6 kB / 451 MB, free: 2.418 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.047e-05/0.2061, allocations: 8 kB / 451.1 MB, free: 2.41 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.004e-05/0.2061, allocations: 4 kB / 451.1 MB, free: 2.406 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.593e-05/0.2062, allocations: 19.89 kB / 451.1 MB, free: 2.387 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006323/0.2068, allocations: 84.48 kB / 451.2 MB, free: 2.305 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.263e-05/0.2069, allocations: 15.94 kB / 451.2 MB, free: 2.289 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005948/0.2075, allocations: 23.91 kB / 451.2 MB, free: 2.266 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.495e-05/0.2076, allocations: 23.98 kB / 451.2 MB, free: 2.242 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 33 * 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 (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 prepare postOptimizeDAE: time 0.0003735/0.208, allocations: 165.6 kB / 451.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001039/0.209, allocations: 257.2 kB / 451.6 MB, free: 1.812 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005687/0.2148, allocations: 349.2 kB / 452 MB, free: 1.465 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.87e-05/0.2148, allocations: 4 kB / 452 MB, free: 1.461 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.292e-05/0.2149, allocations: 11.89 kB / 452 MB, free: 1.449 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.246e-05/0.2149, allocations: 3.984 kB / 452 MB, free: 1.445 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008248/0.2157, allocations: 309.3 kB / 452.3 MB, free: 1.094 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.2158, allocations: 4 kB / 452.3 MB, free: 1.09 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001503/0.2173, allocations: 115.9 kB / 452.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.801e-05/0.2174, allocations: 0 / 452.4 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001727/0.2217, allocations: 11.98 kB / 452.4 MB, free: 0.9648 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-05/0.2218, allocations: 8.062 kB / 452.4 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.14e-06/0.2218, allocations: 0 / 452.4 MB, free: 0.957 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002242/0.2241, allocations: 0.6898 MB / 453.1 MB, free: 240 kB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002239/0.2244, allocations: 116.8 kB / 453.2 MB, free: 104 kB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001387/0.2245, allocations: 15.95 kB / 453.3 MB, free: 88 kB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006637/0.2252, allocations: 20.03 kB / 453.3 MB, free: 68 kB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.268e-05/0.2253, allocations: 7.938 kB / 453.3 MB, free: 60 kB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.004193/0.2296, allocations: 15.98 kB / 453.3 MB, free: 44 kB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0008129/0.2305, allocations: 243.1 kB / 453.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of sort global known variables: time 9.82e-07/0.2305, allocations: 0 / 453.5 MB, free: 15.8 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001601/0.2321, allocations: 60 kB / 453.6 MB, free: 15.75 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 (39): * Single equations (assignments): 39 * 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.0003756/0.2326, allocations: 99.19 kB / 453.7 MB, free: 15.64 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00575/0.2384, allocations: 277.3 kB / 454 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 9.408e-06/0.2385, allocations: 0 / 454 MB, free: 15.37 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002108/0.2387, allocations: 32.11 kB / 454 MB, free: 15.34 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001541/0.2403, allocations: 181.6 kB / 454.2 MB, free: 15.17 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007789/0.2481, allocations: 0.845 MB / 455 MB, free: 14.29 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008202/0.249, allocations: 0.8073 MB / 455.8 MB, free: 13.45 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003531/0.2494, allocations: 35.42 kB / 455.9 MB, free: 13.42 MB / 298.7 MB Notification: Performance of SimCode: time 2.535e-06/0.2495, allocations: 4 kB / 455.9 MB, free: 13.41 MB / 298.7 MB Notification: Performance of Templates: time 0.0293/0.2788, allocations: 3.618 MB / 459.5 MB, free: 9.797 MB / 298.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