Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00151/0.00151, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001411/0.001411, allocations: 212.4 kB / 23.73 MB, free: 4.387 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.389/1.389, allocations: 230.6 MB / 257.5 MB, free: 7.781 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 51.92 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2382/0.2396, allocations: 53.37 MB / 431.1 MB, free: 6.637 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.003515/0.2431, allocations: 2.124 MB / 433.2 MB, free: 4.504 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.2443, allocations: 0.5848 MB / 433.8 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001269/0.2444, allocations: 4 kB / 433.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000116/0.2445, allocations: 27.61 kB / 433.8 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.2448, allocations: 87.39 kB / 433.9 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002585/0.2451, allocations: 67.8 kB / 434 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003513/0.2454, allocations: 283 kB / 434.2 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001626/0.2456, allocations: 52.92 kB / 434.3 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002581/0.2458, allocations: 127.4 kB / 434.4 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002295/0.2461, allocations: 143.2 kB / 434.6 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.687e-05/0.2461, allocations: 24 kB / 434.6 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.088e-05/0.2461, allocations: 20 kB / 434.6 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.359e-05/0.2462, allocations: 63.7 kB / 434.7 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001241/0.2464, allocations: 111.2 kB / 434.8 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003305/0.2467, allocations: 264.3 kB / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.382e-06/0.2467, allocations: 0 / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.2467, allocations: 0 / 435 MB, free: 2.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.311e-06/0.2467, allocations: 4 kB / 435 MB, free: 2.656 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.001178/0.2479, allocations: 0.5515 MB / 435.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.2479, allocations: 8.031 kB / 435.6 MB, free: 2.066 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.729e-05/0.248, allocations: 46.73 kB / 435.6 MB, free: 2.012 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.079e-05/0.2481, allocations: 36.7 kB / 435.7 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004045/0.2485, allocations: 262.7 kB / 435.9 MB, free: 1.699 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.921e-05/0.2485, allocations: 12.22 kB / 435.9 MB, free: 1.688 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.2485, allocations: 20 kB / 436 MB, free: 1.668 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006588/0.2492, allocations: 373.8 kB / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.017e-05/0.2492, allocations: 0 / 436.3 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.714e-05/0.2492, allocations: 4 kB / 436.3 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.2492, allocations: 4 kB / 436.3 MB, free: 1.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002071/0.2494, allocations: 95.89 kB / 436.4 MB, free: 1.18 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006814/0.2501, allocations: 464.8 kB / 436.9 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007054/0.2508, allocations: 303.6 kB / 437.2 MB, free: 360 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002222/0.251, allocations: 133 kB / 437.3 MB, free: 220 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.397e-05/0.2511, allocations: 8 kB / 437.3 MB, free: 212 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.034e-05/0.2511, allocations: 38.56 kB / 437.4 MB, free: 164 kB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.503e-06/0.2511, allocations: 0 / 437.4 MB, free: 164 kB / 334.1 MB Notification: Performance of matching and sorting (n=38): time 0.002266/0.2534, allocations: 1.155 MB / 438.5 MB, free: 14.95 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001196/0.2535, allocations: 146.8 kB / 438.7 MB, free: 14.79 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003677/0.2539, allocations: 328.6 kB / 439 MB, free: 14.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.067e-05/0.2539, allocations: 33.7 kB / 439 MB, free: 14.42 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001082/0.254, allocations: 153 kB / 439.2 MB, free: 14.27 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.221e-05/0.254, allocations: 43.72 kB / 439.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.423e-05/0.2541, allocations: 62.14 kB / 439.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001699/0.2543, allocations: 350.8 kB / 439.6 MB, free: 13.8 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001344/0.2544, allocations: 68.83 kB / 439.7 MB, free: 13.74 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003132/0.2547, allocations: 304.6 kB / 440 MB, free: 13.33 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004659/0.2552, allocations: 403.2 kB / 440.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.719e-06/0.2552, allocations: 4 kB / 440.4 MB, free: 12.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0006005/0.2558, allocations: 401 kB / 440.8 MB, free: 12.42 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.859e-05/0.2558, allocations: 8 kB / 440.8 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.079e-05/0.2558, allocations: 8 kB / 440.8 MB, free: 12.4 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.2559, allocations: 12 kB / 440.8 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000261/0.2561, allocations: 88.5 kB / 440.9 MB, free: 12.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.805e-05/0.2561, allocations: 19.92 kB / 440.9 MB, free: 12.29 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000211/0.2564, allocations: 27.95 kB / 440.9 MB, free: 12.26 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.083e-05/0.2564, allocations: 24 kB / 440.9 MB, free: 12.23 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 37 * 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 (49): * Single equations (assignments): 49 * 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.0001686/0.2566, allocations: 169.5 kB / 441.1 MB, free: 12.06 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004741/0.257, allocations: 289.9 kB / 441.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006567/0.2577, allocations: 368.5 kB / 441.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.754e-06/0.2577, allocations: 8 kB / 441.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.448e-06/0.2577, allocations: 0 / 441.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.535e-06/0.2577, allocations: 3.984 kB / 441.8 MB, free: 11.38 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003522/0.2581, allocations: 236.6 kB / 442 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.003e-06/0.2581, allocations: 4 kB / 442 MB, free: 11.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005786/0.2586, allocations: 115.9 kB / 442.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.602e-06/0.2586, allocations: 4 kB / 442.1 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.891e-05/0.2587, allocations: 15.98 kB / 442.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.2587, allocations: 0 / 442.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.881e-06/0.2587, allocations: 4 kB / 442.1 MB, free: 10.97 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009552/0.2596, allocations: 0.6989 MB / 442.8 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.075e-05/0.2597, allocations: 39.84 kB / 442.9 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.763e-05/0.2598, allocations: 16.06 kB / 442.9 MB, free: 10.19 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002461/0.26, allocations: 19.92 kB / 442.9 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.516e-05/0.26, allocations: 7.984 kB / 442.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.11e-05/0.2601, allocations: 8 kB / 442.9 MB, free: 10.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002584/0.2603, allocations: 247.1 kB / 443.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2603, allocations: 0 / 443.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004154/0.2607, allocations: 60 kB / 443.2 MB, free: 9.859 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 (43): * Single equations (assignments): 43 * 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.001261/0.262, allocations: 1.249 MB / 444.5 MB, free: 8.582 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004906/0.2625, allocations: 286.1 kB / 444.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.994e-06/0.2625, allocations: 0 / 444.8 MB, free: 8.305 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 6.447e-05/0.2626, allocations: 28.06 kB / 444.8 MB, free: 8.277 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007005/0.2633, allocations: 195 kB / 445 MB, free: 8.09 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004425/0.2677, allocations: 3.765 MB / 448.7 MB, free: 4.02 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001853/0.2679, allocations: 197.6 kB / 448.9 MB, free: 3.805 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.12e-05/0.268, allocations: 35.27 kB / 449 MB, free: 3.773 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001773/0.2681, allocations: 115.4 kB / 449.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2681, allocations: 0 / 449.1 MB, free: 3.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03704/0.3052, allocations: 7.938 MB / 457 MB, free: 11.87 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.64/10.95, allocations: 3.984 kB / 457 MB, free: 11.87 MB / 366.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.3329688750091]