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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002123/0.002123, allocations: 121.4 kB / 17.79 MB, free: 5.121 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002202/0.002202, allocations: 190.9 kB / 20.73 MB, free: 2.184 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.553/1.553, allocations: 225.6 MB / 249.1 MB, free: 3.645 MB / 190.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.ControlledMixingUnit,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00157/0.00157, allocations: 47.92 kB / 365.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1306/0.1322, allocations: 52.14 MB / 417.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00419/0.1364, allocations: 2.231 MB / 420 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001317/0.1377, allocations: 0.5926 MB / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002166/0.1379, allocations: 0 / 420.6 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001384/0.1381, allocations: 31.61 kB / 420.6 MB, free: 9.777 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002982/0.1384, allocations: 75.42 kB / 420.7 MB, free: 9.703 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002804/0.1386, allocations: 83.77 kB / 420.8 MB, free: 9.621 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003167/0.139, allocations: 267.1 kB / 421 MB, free: 9.359 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.1391, allocations: 56.94 kB / 421.1 MB, free: 9.297 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000171/0.1393, allocations: 119.3 kB / 421.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002009/0.1395, allocations: 143.3 kB / 421.4 MB, free: 9.039 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001329/0.1396, allocations: 24 kB / 421.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.919e-05/0.1397, allocations: 27.94 kB / 421.4 MB, free: 8.988 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.564e-05/0.1397, allocations: 63.7 kB / 421.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001294/0.1399, allocations: 123.1 kB / 421.6 MB, free: 8.805 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003425/0.1402, allocations: 266.6 kB / 421.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1402, allocations: 0 / 421.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.453e-06/0.1402, allocations: 0 / 421.8 MB, free: 8.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.032e-06/0.1402, allocations: 4 kB / 421.9 MB, free: 8.539 MB / 350.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.00141/0.1416, allocations: 0.6229 MB / 422.5 MB, free: 7.867 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.884e-05/0.1417, allocations: 12.03 kB / 422.5 MB, free: 7.855 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.393e-05/0.1418, allocations: 50.73 kB / 422.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.65e-05/0.1418, allocations: 32.75 kB / 422.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004656/0.1423, allocations: 328.5 kB / 422.9 MB, free: 7.406 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.048e-05/0.1423, allocations: 12.22 kB / 422.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.1424, allocations: 12 kB / 422.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007384/0.1431, allocations: 369.8 kB / 423.3 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.406e-05/0.1431, allocations: 0 / 423.3 MB, free: 7 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.009e-05/0.1431, allocations: 8 kB / 423.3 MB, free: 6.992 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.736e-06/0.1431, allocations: 4 kB / 423.3 MB, free: 6.988 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002092/0.1433, allocations: 95.88 kB / 423.4 MB, free: 6.895 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007111/0.1441, allocations: 0.5249 MB / 423.9 MB, free: 6.312 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007063/0.1448, allocations: 307.9 kB / 424.2 MB, free: 5.984 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002203/0.145, allocations: 122.5 kB / 424.3 MB, free: 5.855 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.347e-05/0.145, allocations: 11.84 kB / 424.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.581e-05/0.1451, allocations: 42.5 kB / 424.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.243e-06/0.1451, allocations: 0 / 424.4 MB, free: 5.793 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002724/0.1478, allocations: 1.347 MB / 425.7 MB, free: 4.355 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001327/0.1479, allocations: 127.4 kB / 425.8 MB, free: 4.207 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003989/0.1483, allocations: 328.6 kB / 426.2 MB, free: 3.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.364e-05/0.1483, allocations: 33.7 kB / 426.2 MB, free: 3.84 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1485, allocations: 149.1 kB / 426.3 MB, free: 3.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.731e-05/0.1485, allocations: 43.72 kB / 426.4 MB, free: 3.648 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.15e-05/0.1486, allocations: 78.16 kB / 426.5 MB, free: 3.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001744/0.1488, allocations: 346.8 kB / 426.8 MB, free: 3.219 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001384/0.1489, allocations: 68.84 kB / 426.9 MB, free: 3.152 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003588/0.1493, allocations: 323.3 kB / 427.2 MB, free: 2.711 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004842/0.1498, allocations: 416.9 kB / 427.6 MB, free: 2.184 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.1498, allocations: 4 kB / 427.6 MB, free: 2.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007114/0.1505, allocations: 413.6 kB / 428 MB, free: 1.77 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.542e-05/0.1505, allocations: 9.875 kB / 428 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.249e-05/0.1505, allocations: 8 kB / 428 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.75e-05/0.1505, allocations: 19.92 kB / 428 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002592/0.1508, allocations: 95.83 kB / 428.1 MB, free: 1.641 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.505e-05/0.1508, allocations: 15.94 kB / 428.2 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000261/0.1511, allocations: 27.92 kB / 428.2 MB, free: 1.598 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.934e-05/0.1511, allocations: 24 kB / 428.2 MB, free: 1.574 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.0001826/0.1513, allocations: 174.5 kB / 428.4 MB, free: 1.395 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004938/0.1518, allocations: 296.8 kB / 428.7 MB, free: 1.098 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006843/0.1525, allocations: 379.5 kB / 429 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.1525, allocations: 4 kB / 429 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.1525, allocations: 0 / 429 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.808e-06/0.1525, allocations: 7.984 kB / 429 MB, free: 0.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003984/0.1529, allocations: 321.3 kB / 429.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1529, allocations: 0 / 429.4 MB, free: 352 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005462/0.1534, allocations: 127.8 kB / 429.5 MB, free: 224 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.266e-06/0.1535, allocations: 4 kB / 429.5 MB, free: 220 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.992e-05/0.1535, allocations: 16.06 kB / 429.5 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.101e-06/0.1535, allocations: 80 / 429.5 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.238e-05/0.1535, allocations: 7.984 kB / 429.5 MB, free: 196 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001094/0.1546, allocations: 0.7148 MB / 430.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001013/0.1547, allocations: 124.8 kB / 430.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.054e-05/0.1548, allocations: 12 kB / 430.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002526/0.155, allocations: 11.94 kB / 430.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.699e-05/0.1551, allocations: 7.984 kB / 430.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.258e-05/0.1551, allocations: 12 kB / 430.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003491/0.1554, allocations: 243.1 kB / 430.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1554, allocations: 0 / 430.6 MB, free: 15.03 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004308/0.1559, allocations: 64.06 kB / 430.7 MB, free: 14.97 MB / 366.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.001524/0.1574, allocations: 1.279 MB / 432 MB, free: 13.66 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005879/0.158, allocations: 285.7 kB / 432.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.158, allocations: 0 / 432.2 MB, free: 13.39 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.359e-05/0.1581, allocations: 32.48 kB / 432.3 MB, free: 13.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008797/0.1589, allocations: 208.4 kB / 432.5 MB, free: 13.15 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00508/0.164, allocations: 3.83 MB / 436.3 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004428/0.1645, allocations: 0.8034 MB / 437.1 MB, free: 8.168 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.1646, allocations: 35.27 kB / 437.2 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001964/0.1648, allocations: 119.4 kB / 437.3 MB, free: 8.016 MB / 366.1 MB Notification: Performance of SimCode: time 5.41e-07/0.1648, allocations: 0 / 437.3 MB, free: 8.016 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1199/0.2846, allocations: 7.18 MB / 444.4 MB, free: 0.9453 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.142/9.427, allocations: 10.03 kB / 444.5 MB, free: 0.9375 MB / 366.1 MB " [Timeout remaining time 650] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit_fmu --startTime=0 --stopTime=300 --stepSize=0.0545355 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_ControlledMixingUnit.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/ControlledMixingUnit/ControlledMixingUnit.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 12.50666412198916]