Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_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_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001512/0.001512, allocations: 112.5 kB / 17.86 MB, free: 5.629 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001723/0.001723, allocations: 209.7 kB / 18.79 MB, free: 4.699 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.448/1.448, allocations: 227.4 MB / 246.9 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 61.31 kB / 306.9 MB, free: 1.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1153/0.1165, allocations: 50.53 MB / 357.4 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.005374/0.122, allocations: 2.265 MB / 359.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001752/0.1238, allocations: 0.6122 MB / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003295/0.1242, allocations: 0 / 360.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002224/0.1245, allocations: 23.8 kB / 360.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005254/0.125, allocations: 63.55 kB / 360.4 MB, free: 11.54 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004147/0.1254, allocations: 55.94 kB / 360.4 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005218/0.126, allocations: 263 kB / 360.7 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002344/0.1262, allocations: 68.94 kB / 360.8 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003602/0.1266, allocations: 111.4 kB / 360.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002742/0.1269, allocations: 139.2 kB / 361 MB, free: 10.91 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.517e-05/0.127, allocations: 12 kB / 361 MB, free: 10.9 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.867e-05/0.127, allocations: 16 kB / 361 MB, free: 10.89 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001042/0.1271, allocations: 63.67 kB / 361.1 MB, free: 10.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001575/0.1273, allocations: 119.1 kB / 361.2 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002828/0.1276, allocations: 183.8 kB / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.681e-06/0.1276, allocations: 0 / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1276, allocations: 0 / 361.4 MB, free: 10.53 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.436e-05/0.1276, allocations: 4 kB / 361.4 MB, free: 10.52 MB / 302.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.001445/0.1291, allocations: 0.6152 MB / 362 MB, free: 9.859 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.127e-05/0.1291, allocations: 12.03 kB / 362 MB, free: 9.848 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001048/0.1292, allocations: 36.47 kB / 362.1 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005229/0.1298, allocations: 316.4 kB / 362.4 MB, free: 9.465 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.1298, allocations: 16.41 kB / 362.4 MB, free: 9.449 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.976e-05/0.1299, allocations: 19.91 kB / 362.4 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007871/0.1307, allocations: 377.5 kB / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.448e-05/0.1307, allocations: 0 / 362.8 MB, free: 9.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.124e-05/0.1307, allocations: 4 kB / 362.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.966e-06/0.1308, allocations: 4 kB / 362.8 MB, free: 9.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002417/0.131, allocations: 91.89 kB / 362.9 MB, free: 8.941 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008799/0.1319, allocations: 0.5364 MB / 363.4 MB, free: 8.348 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007581/0.1327, allocations: 311.2 kB / 363.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000238/0.1329, allocations: 142.9 kB / 363.9 MB, free: 7.875 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.795e-05/0.133, allocations: 4 kB / 363.9 MB, free: 7.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.597e-05/0.133, allocations: 42.5 kB / 363.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.593e-06/0.133, allocations: 0 / 363.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002648/0.1357, allocations: 1.322 MB / 365.2 MB, free: 6.406 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001237/0.1358, allocations: 134.7 kB / 365.4 MB, free: 6.25 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000413/0.1362, allocations: 332.6 kB / 365.7 MB, free: 5.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.354e-05/0.1363, allocations: 29.7 kB / 365.7 MB, free: 5.879 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.1364, allocations: 149.1 kB / 365.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.706e-05/0.1365, allocations: 47.53 kB / 365.9 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001063/0.1366, allocations: 66.14 kB / 366 MB, free: 5.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.1368, allocations: 350.8 kB / 366.3 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1369, allocations: 68.83 kB / 366.4 MB, free: 5.195 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002975/0.1372, allocations: 314.8 kB / 366.7 MB, free: 4.766 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004806/0.1377, allocations: 421.5 kB / 367.1 MB, free: 4.234 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.396e-06/0.1377, allocations: 7.938 kB / 367.1 MB, free: 4.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007084/0.1384, allocations: 405.4 kB / 367.5 MB, free: 3.824 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.397e-05/0.1385, allocations: 8 kB / 367.5 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.678e-05/0.1385, allocations: 12.12 kB / 367.5 MB, free: 3.805 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.87e-05/0.1385, allocations: 15.98 kB / 367.5 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002738/0.1388, allocations: 95.78 kB / 367.6 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.364e-05/0.1388, allocations: 19.92 kB / 367.6 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002373/0.1391, allocations: 27.84 kB / 367.7 MB, free: 3.648 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.241e-05/0.1391, allocations: 24 kB / 367.7 MB, free: 3.625 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.0001975/0.1393, allocations: 169.6 kB / 367.9 MB, free: 3.449 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004782/0.1398, allocations: 289 kB / 368.1 MB, free: 3.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006955/0.1405, allocations: 379.1 kB / 368.5 MB, free: 2.785 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.775e-06/0.1405, allocations: 11.94 kB / 368.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.514e-06/0.1406, allocations: 0 / 368.5 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.738e-06/0.1406, allocations: 3.984 kB / 368.5 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004199/0.141, allocations: 333.2 kB / 368.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.399e-06/0.141, allocations: 0 / 368.9 MB, free: 2.395 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000599/0.1416, allocations: 123.8 kB / 369 MB, free: 2.273 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.342e-06/0.1416, allocations: 8 kB / 369 MB, free: 2.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.215e-05/0.1417, allocations: 8 kB / 369 MB, free: 2.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.1417, allocations: 3.984 kB / 369 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-06/0.1417, allocations: 0 / 369 MB, free: 2.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001073/0.1428, allocations: 0.7186 MB / 369.7 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.776e-05/0.1429, allocations: 109 kB / 369.8 MB, free: 1.391 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.143e-05/0.1429, allocations: 16 kB / 369.8 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002625/0.1432, allocations: 15.98 kB / 369.9 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.489e-05/0.1433, allocations: 7.984 kB / 369.9 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.641e-05/0.1433, allocations: 15.98 kB / 369.9 MB, free: 1.336 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002957/0.1436, allocations: 243.1 kB / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1436, allocations: 0 / 370.1 MB, free: 1.102 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004694/0.1441, allocations: 60 kB / 370.2 MB, free: 1.043 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.0001475/0.1442, allocations: 111.2 kB / 370.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005898/0.1448, allocations: 290.3 kB / 370.6 MB, free: 0.6445 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.659e-06/0.1449, allocations: 4.062 kB / 370.6 MB, free: 0.6406 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.511e-05/0.1449, allocations: 31.92 kB / 370.6 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008203/0.1458, allocations: 216.4 kB / 370.8 MB, free: 408 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1666/0.3124, allocations: 0.8649 MB / 371.7 MB, free: 20.09 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00036/0.3128, allocations: 0.8096 MB / 372.5 MB, free: 19.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001825/0.313, allocations: 33.86 kB / 372.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of SimCode: time 1.092e-06/0.313, allocations: 0 / 372.5 MB, free: 19.38 MB / 302.1 MB Notification: Performance of Templates: time 0.008599/0.3216, allocations: 3.912 MB / 376.4 MB, free: 19.15 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches