Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 90] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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=500,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") translateModel(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,tolerance=1e-06,outputFormat="mat",numberOfIntervals=500,variableFilter="time|filter.x.1.|filter.x.2.|filter.x.3.|invMixingUnit.c|invMixingUnit.T|mixingUnit.c|mixingUnit.T",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit") [Timeout 660] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001325/0.001325, allocations: 112.6 kB / 18.78 MB, free: 3.562 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001249/0.001249, allocations: 215.9 kB / 19.8 MB, free: 2.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.515/1.515, allocations: 230.4 MB / 251.1 MB, free: 8.449 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001958/0.001958, allocations: 71.81 kB / 368.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2831/0.2851, allocations: 53.32 MB / 422.3 MB, free: 7.844 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004102/0.2892, allocations: 2.226 MB / 424.5 MB, free: 5.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00131/0.2905, allocations: 0.6237 MB / 425.1 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001181/0.2906, allocations: 0 / 425.1 MB, free: 4.977 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001355/0.2908, allocations: 27.61 kB / 425.1 MB, free: 4.949 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002827/0.291, allocations: 83.36 kB / 425.2 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002759/0.2913, allocations: 71.84 kB / 425.3 MB, free: 4.797 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003383/0.2917, allocations: 279 kB / 425.6 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001629/0.2918, allocations: 52.73 kB / 425.6 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002385/0.2921, allocations: 119.4 kB / 425.7 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000238/0.2923, allocations: 143.2 kB / 425.9 MB, free: 4.207 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.371e-05/0.2923, allocations: 24 kB / 425.9 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.946e-05/0.2924, allocations: 20 kB / 425.9 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.261e-05/0.2925, allocations: 79.67 kB / 426 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001264/0.2926, allocations: 123.1 kB / 426.1 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003344/0.2929, allocations: 262.2 kB / 426.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2929, allocations: 0 / 426.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.2929, allocations: 0 / 426.4 MB, free: 3.711 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.2929, allocations: 0 / 426.4 MB, free: 3.711 MB / 334.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.00116/0.2941, allocations: 0.6258 MB / 427 MB, free: 3.039 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.061e-05/0.2941, allocations: 8.031 kB / 427 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.258e-05/0.2942, allocations: 36.7 kB / 427 MB, free: 2.996 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004197/0.2946, allocations: 324.6 kB / 427.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.2947, allocations: 12.41 kB / 427.4 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.97e-05/0.2947, allocations: 16 kB / 427.4 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006568/0.2953, allocations: 369.9 kB / 427.7 MB, free: 2.234 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.649e-05/0.2954, allocations: 7.938 kB / 427.8 MB, free: 2.227 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.802e-05/0.2954, allocations: 4 kB / 427.8 MB, free: 2.223 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.2954, allocations: 4 kB / 427.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001997/0.2956, allocations: 87.95 kB / 427.8 MB, free: 2.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007498/0.2963, allocations: 0.5288 MB / 428.4 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007008/0.297, allocations: 311.8 kB / 428.7 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002204/0.2973, allocations: 126.5 kB / 428.8 MB, free: 1.082 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.059e-05/0.2973, allocations: 4.656 kB / 428.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.033e-05/0.2973, allocations: 46.55 kB / 428.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.393e-06/0.2973, allocations: 0 / 428.9 MB, free: 1.023 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.0024/0.2997, allocations: 1.347 MB / 430.2 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.2999, allocations: 134.7 kB / 430.3 MB, free: 15.43 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003922/0.3002, allocations: 328.6 kB / 430.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.109e-05/0.3003, allocations: 33.7 kB / 430.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001061/0.3004, allocations: 145 kB / 430.8 MB, free: 14.92 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.786e-05/0.3004, allocations: 55.67 kB / 430.9 MB, free: 14.86 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.872e-05/0.3005, allocations: 70.14 kB / 430.9 MB, free: 14.79 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.3007, allocations: 354.8 kB / 431.3 MB, free: 14.43 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.3008, allocations: 68.78 kB / 431.4 MB, free: 14.37 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003224/0.3012, allocations: 322.7 kB / 431.7 MB, free: 13.93 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004706/0.3016, allocations: 413 kB / 432.1 MB, free: 13.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.829e-06/0.3016, allocations: 3.938 kB / 432.1 MB, free: 13.4 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000628/0.3023, allocations: 409.6 kB / 432.5 MB, free: 13 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.796e-05/0.3023, allocations: 8 kB / 432.5 MB, free: 12.99 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.3023, allocations: 12.09 kB / 432.5 MB, free: 12.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.3023, allocations: 12 kB / 432.5 MB, free: 12.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002696/0.3026, allocations: 99.83 kB / 432.6 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.963e-05/0.3026, allocations: 15.94 kB / 432.6 MB, free: 12.85 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002157/0.3028, allocations: 19.95 kB / 432.6 MB, free: 12.83 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.77e-05/0.3028, allocations: 28 kB / 432.7 MB, free: 12.8 MB / 350.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.0001788/0.303, allocations: 173.5 kB / 432.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004798/0.3035, allocations: 292.9 kB / 433.1 MB, free: 12.33 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006866/0.3042, allocations: 383.5 kB / 433.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.584e-06/0.3042, allocations: 4 kB / 433.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.843e-06/0.3042, allocations: 4 kB / 433.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.97e-06/0.3042, allocations: 0 / 433.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004081/0.3046, allocations: 321.3 kB / 433.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.3046, allocations: 0 / 433.8 MB, free: 11.58 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000585/0.3052, allocations: 127.8 kB / 434 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.937e-06/0.3052, allocations: 0 / 434 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.541e-05/0.3052, allocations: 16 kB / 434 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.809e-06/0.3052, allocations: 4 kB / 434 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.3052, allocations: 0 / 434 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001026/0.3063, allocations: 0.711 MB / 434.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001066/0.3064, allocations: 124.8 kB / 434.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.784e-05/0.3064, allocations: 24.06 kB / 434.8 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002452/0.3067, allocations: 8 kB / 434.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.9e-05/0.3067, allocations: 7.984 kB / 434.8 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3067, allocations: 12 kB / 434.9 MB, free: 10.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002793/0.307, allocations: 243.1 kB / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.307, allocations: 0 / 435.1 MB, free: 10.27 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004534/0.3075, allocations: 64 kB / 435.2 MB, free: 10.21 MB / 350.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.0001574/0.3076, allocations: 117.9 kB / 435.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005719/0.3082, allocations: 290.2 kB / 435.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.023e-06/0.3082, allocations: 0 / 435.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.762e-05/0.3083, allocations: 32.05 kB / 435.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007585/0.309, allocations: 204.3 kB / 435.8 MB, free: 9.578 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001415/0.3105, allocations: 0.7478 MB / 436.5 MB, free: 8.801 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004323/0.3109, allocations: 0.8034 MB / 437.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.975e-05/0.311, allocations: 39.27 kB / 437.4 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.076e-05/0.3111, allocations: 27.44 kB / 437.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.3111, allocations: 0 / 437.4 MB, free: 7.898 MB / 350.1 MB Notification: Performance of Templates: time 0.008652/0.3197, allocations: 3.767 MB / 441.2 MB, free: 4.137 MB / 350.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] Reference file matches