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.001857/0.001858, allocations: 110.1 kB / 17.29 MB, free: 6.059 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.001712/0.001712, allocations: 193.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.386/1.386, allocations: 222.9 MB / 241.9 MB, free: 15.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001151/0.001151, allocations: 47.67 kB / 300.8 MB, free: 6.203 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1002/0.1013, allocations: 49.44 MB / 350.2 MB, free: 4.758 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003966/0.1053, allocations: 2.26 MB / 352.5 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001268/0.1066, allocations: 0.5888 MB / 353.1 MB, free: 1.879 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002173/0.1069, allocations: 4 kB / 353.1 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001464/0.107, allocations: 15.8 kB / 353.1 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003324/0.1074, allocations: 63.59 kB / 353.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003043/0.1078, allocations: 59.88 kB / 353.2 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000357/0.1081, allocations: 279 kB / 353.5 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000185/0.1083, allocations: 64.59 kB / 353.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002098/0.1085, allocations: 119.4 kB / 353.7 MB, free: 1.285 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002034/0.1088, allocations: 147.2 kB / 353.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.761e-05/0.1088, allocations: 24 kB / 353.8 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.192e-05/0.1089, allocations: 24 kB / 353.9 MB, free: 1.094 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.983e-05/0.109, allocations: 63.69 kB / 353.9 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001213/0.1091, allocations: 127.1 kB / 354 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002604/0.1094, allocations: 191.8 kB / 354.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.578e-06/0.1094, allocations: 0 / 354.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.1094, allocations: 0 / 354.2 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.335e-05/0.1094, allocations: 0 / 354.2 MB, free: 0.7188 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.001219/0.1106, allocations: 0.6191 MB / 354.8 MB, free: 52 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.1107, allocations: 8.031 kB / 354.9 MB, free: 44 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.224e-05/0.1108, allocations: 32.56 kB / 354.9 MB, free: 12 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004315/0.1112, allocations: 320.3 kB / 355.2 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.1112, allocations: 12.41 kB / 355.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.434e-05/0.1113, allocations: 23.84 kB / 355.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006303/0.1119, allocations: 366 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.618e-06/0.1119, allocations: 0 / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.563e-05/0.112, allocations: 8 kB / 355.6 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.112, allocations: 7.984 kB / 355.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002009/0.1122, allocations: 91.89 kB / 355.7 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007527/0.1129, allocations: 0.5248 MB / 356.2 MB, free: 14.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006851/0.1136, allocations: 320 kB / 356.5 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00022/0.1139, allocations: 138.9 kB / 356.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.22e-05/0.1139, allocations: 4 kB / 356.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.633e-05/0.1139, allocations: 38.56 kB / 356.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.493e-06/0.114, allocations: 3.938 kB / 356.7 MB, free: 14.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002457/0.1164, allocations: 1.318 MB / 358 MB, free: 12.62 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001147/0.1165, allocations: 142.6 kB / 358.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.1169, allocations: 328.6 kB / 358.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.199e-05/0.117, allocations: 37.83 kB / 358.5 MB, free: 12.08 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.195e-05/0.1171, allocations: 141.1 kB / 358.7 MB, free: 11.94 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.086e-05/0.1171, allocations: 55.52 kB / 358.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.034e-05/0.1172, allocations: 62.14 kB / 358.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001333/0.1174, allocations: 346.8 kB / 359.1 MB, free: 11.47 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.1175, allocations: 76.83 kB / 359.2 MB, free: 11.39 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002932/0.1178, allocations: 318.7 kB / 359.5 MB, free: 10.96 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004576/0.1183, allocations: 417 kB / 359.9 MB, free: 10.44 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.823e-06/0.1183, allocations: 3.938 kB / 359.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006505/0.119, allocations: 409 kB / 360.3 MB, free: 10.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/0.119, allocations: 8 kB / 360.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.565e-05/0.119, allocations: 15.94 kB / 360.3 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.119, allocations: 8 kB / 360.3 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002843/0.1193, allocations: 99.83 kB / 360.4 MB, free: 9.898 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.303e-05/0.1194, allocations: 19.92 kB / 360.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002443/0.1196, allocations: 28.34 kB / 360.5 MB, free: 9.852 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.286e-05/0.1197, allocations: 24 kB / 360.5 MB, free: 9.828 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.0002122/0.1199, allocations: 165.6 kB / 360.7 MB, free: 9.656 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004719/0.1204, allocations: 297.1 kB / 361 MB, free: 9.359 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006546/0.121, allocations: 371.2 kB / 361.3 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.887e-06/0.121, allocations: 4 kB / 361.3 MB, free: 8.984 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.1211, allocations: 4 kB / 361.3 MB, free: 8.98 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.143e-06/0.1211, allocations: 7.984 kB / 361.3 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004069/0.1215, allocations: 329.2 kB / 361.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.1215, allocations: 0 / 361.7 MB, free: 8.602 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005738/0.1221, allocations: 135.7 kB / 361.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1221, allocations: 0 / 361.8 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.143e-05/0.1221, allocations: 8 kB / 361.8 MB, free: 8.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.961e-06/0.1221, allocations: 11.92 kB / 361.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.1221, allocations: 0 / 361.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000998/0.1231, allocations: 0.7145 MB / 362.5 MB, free: 7.715 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.445e-05/0.1233, allocations: 112.8 kB / 362.6 MB, free: 7.586 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.135e-05/0.1233, allocations: 12 kB / 362.7 MB, free: 7.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002576/0.1236, allocations: 11.98 kB / 362.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.062e-05/0.1236, allocations: 11.94 kB / 362.7 MB, free: 7.551 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.745e-05/0.1237, allocations: 20.11 kB / 362.7 MB, free: 7.531 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002632/0.1239, allocations: 243.1 kB / 362.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1239, allocations: 0 / 362.9 MB, free: 7.297 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004576/0.1244, allocations: 64 kB / 363 MB, free: 7.234 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.0001431/0.1246, allocations: 111.4 kB / 363.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006454/0.1252, allocations: 332.1 kB / 363.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.605e-06/0.1252, allocations: 0 / 363.4 MB, free: 6.793 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.952e-05/0.1253, allocations: 33.61 kB / 363.5 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007529/0.1261, allocations: 225.7 kB / 363.7 MB, free: 6.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001521/0.1276, allocations: 0.8878 MB / 364.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.128, allocations: 0.8073 MB / 365.4 MB, free: 4.781 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.784e-05/0.1281, allocations: 31.44 kB / 365.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1281, allocations: 0 / 365.4 MB, free: 4.75 MB / 302.1 MB Notification: Performance of Templates: time 0.007284/0.1354, allocations: 3.918 MB / 369.3 MB, free: 0.832 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