Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_cpp_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_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001182/0.001182, allocations: 194.9 kB / 17.05 MB, free: 5.098 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 226.6 MB / 244.3 MB, free: 8.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007858/0.0007858, allocations: 92.88 kB / 296.4 MB, free: 7.055 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002291/0.0002292, allocations: 11.98 kB / 356.2 MB, free: 11.27 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2118/0.212, allocations: 51.28 MB / 407.5 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.001898/0.214, allocations: 1.848 MB / 409.3 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008767/0.2149, allocations: 0.5842 MB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001051/0.215, allocations: 2.094 kB / 409.9 MB, free: 25.45 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.061e-05/0.2151, allocations: 15.8 kB / 409.9 MB, free: 25.43 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002221/0.2153, allocations: 55.62 kB / 410 MB, free: 25.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002319/0.2155, allocations: 63.86 kB / 410 MB, free: 25.31 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002069/0.2158, allocations: 245.4 kB / 410.3 MB, free: 25.07 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001235/0.2159, allocations: 62.09 kB / 410.3 MB, free: 25.02 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001665/0.2161, allocations: 97.72 kB / 410.4 MB, free: 24.92 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001228/0.2162, allocations: 123.3 kB / 410.6 MB, free: 24.8 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.09e-05/0.2162, allocations: 12 kB / 410.6 MB, free: 24.79 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.974e-05/0.2163, allocations: 12 kB / 410.6 MB, free: 24.78 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.131e-05/0.2163, allocations: 51.73 kB / 410.6 MB, free: 24.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.464e-05/0.2164, allocations: 64.42 kB / 410.7 MB, free: 24.66 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001307/0.2165, allocations: 176.5 kB / 410.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2165, allocations: 0 / 410.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2165, allocations: 0 / 410.9 MB, free: 24.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.779e-06/0.2165, allocations: 0 / 410.9 MB, free: 24.49 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.0008803/0.2174, allocations: 0.5802 MB / 411.5 MB, free: 23.86 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.223e-05/0.2175, allocations: 15.97 kB / 411.5 MB, free: 23.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.432e-05/0.2175, allocations: 31.62 kB / 411.5 MB, free: 23.81 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002866/0.2178, allocations: 303.2 kB / 411.8 MB, free: 23.48 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.431e-05/0.2178, allocations: 12.27 kB / 411.8 MB, free: 23.46 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.2179, allocations: 23.86 kB / 411.8 MB, free: 23.44 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005139/0.2184, allocations: 365.8 kB / 412.2 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.24e-05/0.2184, allocations: 0 / 412.2 MB, free: 23.06 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.898e-05/0.2184, allocations: 8 kB / 412.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.2185, allocations: 0 / 412.2 MB, free: 23.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001756/0.2186, allocations: 99.83 kB / 412.3 MB, free: 22.95 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005409/0.2192, allocations: 0.5364 MB / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005763/0.2198, allocations: 310.2 kB / 413.1 MB, free: 22.03 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001806/0.22, allocations: 150 kB / 413.3 MB, free: 21.88 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.887e-05/0.22, allocations: 7.938 kB / 413.3 MB, free: 21.87 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.672e-05/0.22, allocations: 38.56 kB / 413.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.22, allocations: 0 / 413.3 MB, free: 21.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001929/0.222, allocations: 1.322 MB / 414.6 MB, free: 20.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.996e-05/0.2221, allocations: 130.8 kB / 414.8 MB, free: 20.25 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002648/0.2223, allocations: 332.6 kB / 415.1 MB, free: 19.92 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.2224, allocations: 33.7 kB / 415.1 MB, free: 19.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.13e-05/0.2224, allocations: 137.1 kB / 415.3 MB, free: 19.74 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.681e-05/0.2225, allocations: 51.53 kB / 415.3 MB, free: 19.69 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.08e-05/0.2225, allocations: 4 kB / 415.3 MB, free: 19.69 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.162e-05/0.2225, allocations: 355.4 kB / 415.7 MB, free: 19.33 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000118/0.2227, allocations: 68.84 kB / 415.7 MB, free: 19.27 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001878/0.2229, allocations: 318.7 kB / 416 MB, free: 18.83 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001647/0.223, allocations: 127.9 kB / 416.2 MB, free: 18.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.223, allocations: 3.938 kB / 416.2 MB, free: 18.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000472/0.2235, allocations: 408.5 kB / 416.6 MB, free: 18.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.2236, allocations: 12.88 kB / 416.6 MB, free: 18.29 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.929e-06/0.2236, allocations: 15.95 kB / 416.6 MB, free: 18.27 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.2236, allocations: 12 kB / 416.6 MB, free: 18.26 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002334/0.2238, allocations: 99.83 kB / 416.7 MB, free: 18.16 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.369e-05/0.2239, allocations: 15.94 kB / 416.7 MB, free: 18.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000203/0.2241, allocations: 23.98 kB / 416.8 MB, free: 18.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.222e-05/0.2241, allocations: 24 kB / 416.8 MB, free: 18.1 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.0001208/0.2242, allocations: 169.2 kB / 416.9 MB, free: 17.93 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003671/0.2246, allocations: 292.9 kB / 417.2 MB, free: 17.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005147/0.2251, allocations: 379.5 kB / 417.6 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.021e-06/0.2251, allocations: 7.953 kB / 417.6 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.288e-06/0.2251, allocations: 0 / 417.6 MB, free: 17.25 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.522e-06/0.2252, allocations: 3.984 kB / 417.6 MB, free: 17.24 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003197/0.2255, allocations: 321.3 kB / 417.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.976e-06/0.2255, allocations: 0 / 417.9 MB, free: 16.88 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005236/0.226, allocations: 131.8 kB / 418.1 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.226, allocations: 0 / 418.1 MB, free: 16.75 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.2261, allocations: 16 kB / 418.1 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.065e-06/0.2261, allocations: 4 kB / 418.1 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2261, allocations: 3.953 kB / 418.1 MB, free: 16.73 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007649/0.2269, allocations: 0.7185 MB / 418.8 MB, free: 15.98 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.856e-05/0.2269, allocations: 112.7 kB / 418.9 MB, free: 15.86 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.826e-05/0.227, allocations: 12.06 kB / 418.9 MB, free: 15.84 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002363/0.2272, allocations: 23.92 kB / 418.9 MB, free: 15.82 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.636e-05/0.2273, allocations: 7.953 kB / 418.9 MB, free: 15.81 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.923e-05/0.2273, allocations: 12 kB / 419 MB, free: 15.8 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001875/0.2275, allocations: 243 kB / 419.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2275, allocations: 0 / 419.2 MB, free: 15.57 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003876/0.2279, allocations: 64 kB / 419.3 MB, free: 15.5 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 0.0001034/0.228, allocations: 111.2 kB / 419.4 MB, free: 15.39 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004202/0.2284, allocations: 297.3 kB / 419.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.763e-06/0.2284, allocations: 0 / 419.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.163e-05/0.2285, allocations: 27.92 kB / 419.7 MB, free: 15.07 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006442/0.2291, allocations: 219.5 kB / 419.9 MB, free: 14.86 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001137/0.2303, allocations: 0.8871 MB / 420.8 MB, free: 13.93 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001988/0.2305, allocations: 0.8149 MB / 421.6 MB, free: 13.09 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.379e-05/0.2306, allocations: 31.42 kB / 421.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of SimCode: time 2.11e-07/0.2306, allocations: 0 / 421.6 MB, free: 13.06 MB / 298.7 MB Notification: Performance of Templates: time 0.004703/0.2353, allocations: 3.879 MB / 425.5 MB, free: 9.188 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches