Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002724/0.002724, allocations: 110.3 kB / 17.16 MB, free: 6.082 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003612/0.003613, allocations: 194.9 kB / 18.08 MB, free: 5.285 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.358/2.358, allocations: 222.9 MB / 241.8 MB, free: 15.32 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001522/0.001521, allocations: 50.88 kB / 300.6 MB, free: 6.176 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1732/0.1747, allocations: 49.45 MB / 350.1 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.008929/0.1838, allocations: 2.249 MB / 352.3 MB, free: 2.449 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002333/0.1862, allocations: 0.5887 MB / 352.9 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005821/0.1868, allocations: 4 kB / 352.9 MB, free: 1.855 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003174/0.1872, allocations: 15.8 kB / 352.9 MB, free: 1.84 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007709/0.1881, allocations: 63.61 kB / 353 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006296/0.1888, allocations: 55.89 kB / 353 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000887/0.1897, allocations: 267 kB / 353.3 MB, free: 1.461 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003558/0.1901, allocations: 68.94 kB / 353.4 MB, free: 1.391 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004288/0.1905, allocations: 111.4 kB / 353.5 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004021/0.1909, allocations: 139.2 kB / 353.6 MB, free: 1.145 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.191, allocations: 12 kB / 353.6 MB, free: 1.133 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.388e-05/0.1911, allocations: 16 kB / 353.6 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001429/0.1913, allocations: 55.69 kB / 353.7 MB, free: 1.062 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002665/0.1915, allocations: 119.1 kB / 353.8 MB, free: 0.9453 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003919/0.192, allocations: 191.8 kB / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.574e-06/0.192, allocations: 0 / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.534e-06/0.192, allocations: 0 / 354 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.103e-05/0.192, allocations: 0 / 354 MB, free: 0.7578 MB / 286.1 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.002089/0.1941, allocations: 0.6113 MB / 354.6 MB, free: 100 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.586e-05/0.1942, allocations: 12.03 kB / 354.6 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001692/0.1944, allocations: 32.56 kB / 354.6 MB, free: 56 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007973/0.1952, allocations: 312.3 kB / 354.9 MB, free: 15.71 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.266e-05/0.1952, allocations: 20.41 kB / 355 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.294e-05/0.1953, allocations: 19.89 kB / 355 MB, free: 15.67 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001125/0.1965, allocations: 381.8 kB / 355.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.969e-05/0.1965, allocations: 0 / 355.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.459e-05/0.1966, allocations: 4 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.018e-05/0.1966, allocations: 4 kB / 355.4 MB, free: 15.28 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003391/0.1969, allocations: 83.95 kB / 355.4 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.1983, allocations: 0.5364 MB / 356 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00113/0.1995, allocations: 318.2 kB / 356.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003686/0.1999, allocations: 142.6 kB / 356.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.417e-05/0.2, allocations: 15.92 kB / 356.4 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.205e-05/0.2, allocations: 30.56 kB / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 2.795e-06/0.2, allocations: 0 / 356.5 MB, free: 14.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003981/0.204, allocations: 1.324 MB / 357.8 MB, free: 12.65 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001894/0.2042, allocations: 138.6 kB / 357.9 MB, free: 12.49 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006255/0.2049, allocations: 328.6 kB / 358.3 MB, free: 12.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.776e-05/0.205, allocations: 33.7 kB / 358.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001823/0.2051, allocations: 145.2 kB / 358.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001053/0.2053, allocations: 43.53 kB / 358.5 MB, free: 11.93 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001555/0.2054, allocations: 74.12 kB / 358.5 MB, free: 11.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002001/0.2056, allocations: 346.8 kB / 358.9 MB, free: 11.5 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002262/0.2059, allocations: 72.83 kB / 359 MB, free: 11.43 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004809/0.2064, allocations: 314.7 kB / 359.3 MB, free: 11.01 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007437/0.2071, allocations: 413 kB / 359.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.765e-05/0.2072, allocations: 11.92 kB / 359.7 MB, free: 10.47 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001047/0.2082, allocations: 409.2 kB / 360.1 MB, free: 10.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.547e-05/0.2083, allocations: 8 kB / 360.1 MB, free: 10.06 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.594e-05/0.2083, allocations: 8.656 kB / 360.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.629e-05/0.2083, allocations: 12 kB / 360.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004093/0.2088, allocations: 91.83 kB / 360.2 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.301e-05/0.2088, allocations: 15.94 kB / 360.2 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004095/0.2092, allocations: 31.83 kB / 360.2 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.028e-05/0.2093, allocations: 24.31 kB / 360.3 MB, free: 9.879 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003007/0.2096, allocations: 177.5 kB / 360.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007688/0.2104, allocations: 297.1 kB / 360.7 MB, free: 9.398 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009625/0.2114, allocations: 375.2 kB / 361.1 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.106e-05/0.2114, allocations: 4 kB / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.789e-06/0.2114, allocations: 192 / 361.1 MB, free: 9.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.036e-05/0.2114, allocations: 3.984 kB / 361.1 MB, free: 9.016 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006215/0.2121, allocations: 341.2 kB / 361.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.035e-05/0.2121, allocations: 0 / 361.4 MB, free: 8.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008413/0.2129, allocations: 123.9 kB / 361.6 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.715e-05/0.213, allocations: 8 kB / 361.6 MB, free: 8.504 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.609e-05/0.213, allocations: 12 kB / 361.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.325e-06/0.213, allocations: 0 / 361.6 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.961e-06/0.2131, allocations: 7.938 kB / 361.6 MB, free: 8.484 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00157/0.2146, allocations: 0.7184 MB / 362.3 MB, free: 7.746 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001595/0.2148, allocations: 112.8 kB / 362.4 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.855e-05/0.2149, allocations: 12 kB / 362.4 MB, free: 7.605 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003847/0.2153, allocations: 11.98 kB / 362.4 MB, free: 7.594 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.442e-05/0.2154, allocations: 4 kB / 362.4 MB, free: 7.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.08e-05/0.2154, allocations: 12 kB / 362.5 MB, free: 7.578 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004025/0.2159, allocations: 255 kB / 362.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2159, allocations: 0 / 362.7 MB, free: 7.332 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008288/0.2167, allocations: 64 kB / 362.8 MB, free: 7.27 MB / 302.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002123/0.2169, allocations: 111.1 kB / 362.9 MB, free: 7.152 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008798/0.2178, allocations: 288.8 kB / 363.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.857e-06/0.2178, allocations: 0 / 363.2 MB, free: 6.871 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001088/0.218, allocations: 27.98 kB / 363.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00118/0.2191, allocations: 217.8 kB / 363.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002479/0.2216, allocations: 0.899 MB / 364.3 MB, free: 5.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006849/0.2223, allocations: 0.8073 MB / 365.1 MB, free: 4.859 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001804/0.2225, allocations: 35.42 kB / 365.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of SimCode: time 1.633e-06/0.2226, allocations: 0 / 365.1 MB, free: 4.824 MB / 302.1 MB Notification: Performance of Templates: time 0.01246/0.235, allocations: 3.903 MB / 369 MB, free: 0.9219 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches