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.0009722/0.0009721, allocations: 91.48 kB / 17.35 MB, free: 6.031 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001048/0.001048, allocations: 200.1 kB / 18.28 MB, free: 5.367 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.287/1.287, allocations: 227.7 MB / 246.8 MB, free: 9.68 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002264/0.0002265, allocations: 4 kB / 307.8 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08787/0.08811, allocations: 51.53 MB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.002481/0.09064, allocations: 1.911 MB / 361.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.09184, allocations: 0.6006 MB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001414/0.09201, allocations: 4 kB / 361.9 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001092/0.09213, allocations: 15.8 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002811/0.09242, allocations: 59.56 kB / 361.9 MB, free: 10.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000282/0.09271, allocations: 59.94 kB / 362 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000302/0.09302, allocations: 267 kB / 362.3 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001505/0.09318, allocations: 68.8 kB / 362.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000224/0.09341, allocations: 103.4 kB / 362.4 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002212/0.09364, allocations: 131.2 kB / 362.6 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.159e-05/0.09369, allocations: 12 kB / 362.6 MB, free: 9.742 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.173e-05/0.09373, allocations: 8 kB / 362.6 MB, free: 9.734 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.951e-05/0.0938, allocations: 55.69 kB / 362.6 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001271/0.09394, allocations: 136.8 kB / 362.8 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000231/0.09417, allocations: 235.2 kB / 363 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.09418, allocations: 0 / 363 MB, free: 9.309 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09419, allocations: 0 / 363 MB, free: 9.309 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.105e-06/0.09421, allocations: 4 kB / 363 MB, free: 9.305 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.0009962/0.09521, allocations: 0.5765 MB / 363.6 MB, free: 8.68 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.15e-05/0.09526, allocations: 8.031 kB / 363.6 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.209e-05/0.09532, allocations: 42.75 kB / 363.6 MB, free: 8.621 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.221e-05/0.0954, allocations: 40.45 kB / 363.7 MB, free: 8.582 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003743/0.09578, allocations: 324.2 kB / 364 MB, free: 8.227 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.324e-05/0.09581, allocations: 12.22 kB / 364 MB, free: 8.215 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.586e-05/0.09585, allocations: 16 kB / 364 MB, free: 8.199 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006117/0.09647, allocations: 377.7 kB / 364.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.367e-06/0.09649, allocations: 0 / 364.4 MB, free: 7.809 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.676e-05/0.09651, allocations: 8 kB / 364.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.954e-05/0.09654, allocations: 4 kB / 364.4 MB, free: 7.797 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001995/0.09674, allocations: 95.89 kB / 364.5 MB, free: 7.703 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006704/0.09742, allocations: 0.5325 MB / 365 MB, free: 7.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006467/0.09808, allocations: 323.1 kB / 365.3 MB, free: 6.777 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.09831, allocations: 136 kB / 365.5 MB, free: 6.637 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.904e-05/0.09834, allocations: 15.92 kB / 365.5 MB, free: 6.621 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.253e-05/0.09837, allocations: 38.5 kB / 365.5 MB, free: 6.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.453e-06/0.09838, allocations: 4 kB / 365.5 MB, free: 6.57 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002216/0.1006, allocations: 1.325 MB / 366.8 MB, free: 5.152 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001066/0.1007, allocations: 138.7 kB / 367 MB, free: 4.992 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003391/0.1011, allocations: 324.6 kB / 367.3 MB, free: 4.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.001e-05/0.1011, allocations: 37.7 kB / 367.3 MB, free: 4.621 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.559e-05/0.1012, allocations: 141.1 kB / 367.5 MB, free: 4.48 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.53e-05/0.1013, allocations: 47.53 kB / 367.5 MB, free: 4.434 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.764e-05/0.1013, allocations: 41.73 kB / 367.6 MB, free: 4.387 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001451/0.1015, allocations: 346.8 kB / 367.9 MB, free: 4.039 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.1016, allocations: 72.83 kB / 368 MB, free: 3.969 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002871/0.1019, allocations: 326.7 kB / 368.3 MB, free: 3.523 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004629/0.1024, allocations: 424.8 kB / 368.7 MB, free: 2.988 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.61e-06/0.1024, allocations: 4 kB / 368.7 MB, free: 2.984 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006291/0.103, allocations: 409 kB / 369.1 MB, free: 2.578 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.697e-05/0.1031, allocations: 8 kB / 369.1 MB, free: 2.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.302e-05/0.1031, allocations: 11.98 kB / 369.1 MB, free: 2.559 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.1031, allocations: 12 kB / 369.1 MB, free: 2.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002552/0.1034, allocations: 91.84 kB / 369.2 MB, free: 2.457 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.174e-05/0.1034, allocations: 20.42 kB / 369.2 MB, free: 2.438 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002278/0.1036, allocations: 35.84 kB / 369.3 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.725e-05/0.1037, allocations: 20 kB / 369.3 MB, free: 2.383 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.000174/0.1039, allocations: 170.7 kB / 369.5 MB, free: 2.207 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004482/0.1043, allocations: 292.8 kB / 369.8 MB, free: 1.914 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006201/0.1049, allocations: 375.5 kB / 370.1 MB, free: 1.543 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.53e-06/0.1049, allocations: 4 kB / 370.1 MB, free: 1.539 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.953e-06/0.105, allocations: 8 kB / 370.1 MB, free: 1.531 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.105, allocations: 3.984 kB / 370.1 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003537/0.1053, allocations: 329.2 kB / 370.5 MB, free: 1.156 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.099e-06/0.1053, allocations: 4.062 kB / 370.5 MB, free: 1.152 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005461/0.1059, allocations: 127.8 kB / 370.6 MB, free: 1.027 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.113e-06/0.1059, allocations: 7.938 kB / 370.6 MB, free: 1.02 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.343e-05/0.1059, allocations: 7.984 kB / 370.6 MB, free: 1.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.187e-06/0.106, allocations: 4 kB / 370.6 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.332e-06/0.106, allocations: 0 / 370.6 MB, free: 1.008 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009118/0.1069, allocations: 0.7228 MB / 371.3 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.792e-05/0.107, allocations: 120.6 kB / 371.4 MB, free: 132 kB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.8e-05/0.107, allocations: 8 kB / 371.5 MB, free: 124 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002361/0.1073, allocations: 20.05 kB / 371.5 MB, free: 104 kB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.632e-05/0.1073, allocations: 4 kB / 371.5 MB, free: 100 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.419e-05/0.1073, allocations: 15.98 kB / 371.5 MB, free: 84 kB / 302.1 MB Notification: Performance of sorting global known variables: time 0.1554/0.2628, allocations: 236.7 kB / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 7.62e-07/0.2628, allocations: 0 / 371.7 MB, free: 18.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006307/0.2634, allocations: 62.53 kB / 371.8 MB, free: 18.94 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.001205/0.2646, allocations: 1.281 MB / 373.1 MB, free: 18.19 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005314/0.2652, allocations: 299.4 kB / 373.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.136e-06/0.2652, allocations: 0 / 373.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.024e-05/0.2653, allocations: 33.05 kB / 373.4 MB, free: 18.18 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007407/0.266, allocations: 214.9 kB / 373.6 MB, free: 18.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003221/0.2692, allocations: 2.332 MB / 375.9 MB, free: 17.07 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002403/0.2695, allocations: 0.8111 MB / 376.7 MB, free: 16.37 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001067/0.2696, allocations: 34.89 kB / 376.8 MB, free: 16.36 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001437/0.2698, allocations: 115.1 kB / 376.9 MB, free: 16.35 MB / 302.1 MB Notification: Performance of SimCode: time 9.22e-07/0.2698, allocations: 0 / 376.9 MB, free: 16.35 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0176/0.2874, allocations: 6.331 MB / 383.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001246/0.2875, allocations: 207.6 kB / 383.4 MB, free: 15.37 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.819/2.106, allocations: 0 / 383.4 MB, free: 15.37 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