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: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001192/0.001192, allocations: 109.2 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001139/0.001139, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.268/1.268, allocations: 227.4 MB / 246.3 MB, free: 9.027 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001096/0.001096, allocations: 60.03 kB / 306.3 MB, free: 0.7109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09113/0.09224, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003685/0.09597, allocations: 2.265 MB / 359.1 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001167/0.09716, allocations: 0.6161 MB / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001836/0.09737, allocations: 0 / 359.8 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001322/0.09753, allocations: 15.8 kB / 359.8 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003231/0.09786, allocations: 63.56 kB / 359.8 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002844/0.09816, allocations: 59.94 kB / 359.9 MB, free: 11.13 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003282/0.0985, allocations: 267 kB / 360.2 MB, free: 10.87 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001516/0.09866, allocations: 68.8 kB / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002307/0.09889, allocations: 111.4 kB / 360.3 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001982/0.0991, allocations: 143.2 kB / 360.5 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.915e-05/0.09916, allocations: 12 kB / 360.5 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.902e-05/0.09921, allocations: 16 kB / 360.5 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.31e-05/0.09928, allocations: 59.67 kB / 360.6 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001108/0.0994, allocations: 119.1 kB / 360.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002263/0.09963, allocations: 247.2 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.9e-06/0.09964, allocations: 0 / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.565e-06/0.09965, allocations: 3.984 kB / 360.9 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.434e-06/0.09966, allocations: 0 / 360.9 MB, free: 10.11 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.001148/0.1008, allocations: 0.6213 MB / 361.5 MB, free: 9.438 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.095e-05/0.1009, allocations: 8.031 kB / 361.5 MB, free: 9.43 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.341e-05/0.1009, allocations: 50.73 kB / 361.6 MB, free: 9.371 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.404e-05/0.101, allocations: 40.47 kB / 361.6 MB, free: 9.332 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003936/0.1014, allocations: 308.3 kB / 361.9 MB, free: 8.992 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.577e-05/0.1014, allocations: 16.22 kB / 362 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.936e-05/0.1015, allocations: 19.94 kB / 362 MB, free: 8.957 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006501/0.1021, allocations: 369.7 kB / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.608e-06/0.1022, allocations: 0 / 362.3 MB, free: 8.574 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.916e-05/0.1022, allocations: 8 kB / 362.3 MB, free: 8.566 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.984e-06/0.1022, allocations: 4 kB / 362.3 MB, free: 8.562 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002249/0.1024, allocations: 91.88 kB / 362.4 MB, free: 8.473 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007308/0.1032, allocations: 0.5325 MB / 363 MB, free: 7.883 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006955/0.1039, allocations: 315.4 kB / 363.3 MB, free: 7.551 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002125/0.1041, allocations: 135.3 kB / 363.4 MB, free: 7.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.137e-05/0.1041, allocations: 11.98 kB / 363.4 MB, free: 7.398 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.529e-05/0.1042, allocations: 42.5 kB / 363.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.513e-06/0.1042, allocations: 0 / 363.5 MB, free: 7.348 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002319/0.1065, allocations: 1.322 MB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.778e-05/0.1066, allocations: 126.7 kB / 364.9 MB, free: 5.785 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003527/0.107, allocations: 336.5 kB / 365.2 MB, free: 5.445 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.602e-05/0.107, allocations: 29.7 kB / 365.3 MB, free: 5.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/0.1071, allocations: 149.1 kB / 365.4 MB, free: 5.262 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.889e-05/0.1072, allocations: 47.53 kB / 365.5 MB, free: 5.215 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.792e-05/0.1072, allocations: 70.12 kB / 365.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000132/0.1074, allocations: 346.8 kB / 365.9 MB, free: 4.793 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000155/0.1075, allocations: 68.84 kB / 365.9 MB, free: 4.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003054/0.1079, allocations: 326.7 kB / 366.3 MB, free: 4.285 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004523/0.1083, allocations: 416.8 kB / 366.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.198e-06/0.1083, allocations: 0 / 366.7 MB, free: 3.758 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006191/0.109, allocations: 417.8 kB / 367.1 MB, free: 3.344 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.242e-05/0.109, allocations: 8 kB / 367.1 MB, free: 3.336 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.15e-05/0.109, allocations: 8 kB / 367.1 MB, free: 3.328 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.103e-05/0.109, allocations: 15.98 kB / 367.1 MB, free: 3.312 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002419/0.1093, allocations: 99.83 kB / 367.2 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.607e-05/0.1093, allocations: 11.94 kB / 367.2 MB, free: 3.203 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002135/0.1095, allocations: 27.78 kB / 367.2 MB, free: 3.176 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.593e-05/0.1096, allocations: 32.06 kB / 367.3 MB, free: 3.145 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.000156/0.1097, allocations: 174.8 kB / 367.4 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.1102, allocations: 288.9 kB / 367.7 MB, free: 2.68 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006094/0.1108, allocations: 379.1 kB / 368.1 MB, free: 2.305 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1109, allocations: 4 kB / 368.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.47e-06/0.1109, allocations: 0 / 368.1 MB, free: 2.301 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.013e-06/0.1109, allocations: 4 kB / 368.1 MB, free: 2.297 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003612/0.1113, allocations: 333.3 kB / 368.4 MB, free: 1.922 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.1113, allocations: 4 kB / 368.4 MB, free: 1.918 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005499/0.1118, allocations: 127.8 kB / 368.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.418e-06/0.1118, allocations: 0 / 368.6 MB, free: 1.793 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.381e-05/0.1119, allocations: 8 kB / 368.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.14e-06/0.1119, allocations: 7.984 kB / 368.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.1119, allocations: 0 / 368.6 MB, free: 1.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009479/0.1128, allocations: 0.7147 MB / 369.3 MB, free: 1.043 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.118e-05/0.1129, allocations: 120.6 kB / 369.4 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.489e-05/0.113, allocations: 12 kB / 369.4 MB, free: 0.8945 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002428/0.1132, allocations: 12 kB / 369.4 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.639e-05/0.1133, allocations: 7.984 kB / 369.4 MB, free: 0.875 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.096e-05/0.1133, allocations: 8 kB / 369.4 MB, free: 0.8672 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002431/0.1136, allocations: 247.1 kB / 369.7 MB, free: 0.6289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1136, allocations: 4 kB / 369.7 MB, free: 0.625 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004191/0.114, allocations: 64 kB / 369.7 MB, free: 0.5625 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.1416/0.2556, allocations: 1.265 MB / 371 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006123/0.2562, allocations: 294.1 kB / 371.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.586e-06/0.2562, allocations: 0.6562 kB / 371.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.575e-05/0.2563, allocations: 30.8 kB / 371.3 MB, free: 18.95 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008666/0.2572, allocations: 212 kB / 371.5 MB, free: 18.94 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003852/0.2611, allocations: 2.281 MB / 373.8 MB, free: 17.89 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003122/0.2614, allocations: 0.8064 MB / 374.6 MB, free: 17.19 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001447/0.2616, allocations: 36.66 kB / 374.7 MB, free: 17.18 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001936/0.2618, allocations: 118.6 kB / 374.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2618, allocations: 0 / 374.8 MB, free: 17.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02064/0.2824, allocations: 6.45 MB / 381.2 MB, free: 16.44 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000208/0.2827, allocations: 211.9 kB / 381.4 MB, free: 16.18 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.918/2.201, allocations: 0 / 381.4 MB, free: 16.18 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > 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