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.001362/0.001362, allocations: 115.9 kB / 17.74 MB, free: 5.328 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.001421/0.001422, allocations: 185.3 kB / 20.68 MB, free: 2.395 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.504/1.504, allocations: 222.9 MB / 246.4 MB, free: 4.199 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.00148/0.00148, allocations: 47.92 kB / 357.5 MB, free: 8.926 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1185/0.12, allocations: 49.44 MB / 406.9 MB, free: 7.445 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004029/0.1241, allocations: 2.207 MB / 409.1 MB, free: 5.223 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001319/0.1255, allocations: 0.5926 MB / 409.7 MB, free: 4.629 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001531/0.1256, allocations: 4 kB / 409.7 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001581/0.1258, allocations: 27.61 kB / 409.8 MB, free: 4.598 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003042/0.1262, allocations: 75.41 kB / 409.8 MB, free: 4.523 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003007/0.1265, allocations: 71.84 kB / 409.9 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003848/0.1269, allocations: 275 kB / 410.2 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001972/0.1271, allocations: 72.92 kB / 410.2 MB, free: 4.105 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001844/0.1273, allocations: 115.4 kB / 410.4 MB, free: 3.992 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000226/0.1275, allocations: 151.2 kB / 410.5 MB, free: 3.844 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.92e-05/0.1276, allocations: 24 kB / 410.5 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.098e-05/0.1276, allocations: 20 kB / 410.5 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.704e-05/0.1277, allocations: 63.69 kB / 410.6 MB, free: 3.738 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001435/0.1278, allocations: 131.1 kB / 410.7 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003518/0.1282, allocations: 254.9 kB / 411 MB, free: 3.359 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.1282, allocations: 4 kB / 411 MB, free: 3.355 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.1282, allocations: 0 / 411 MB, free: 3.355 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.572e-06/0.1282, allocations: 0 / 411 MB, free: 3.355 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.001313/0.1296, allocations: 0.6346 MB / 411.6 MB, free: 2.672 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.109e-05/0.1296, allocations: 8.031 kB / 411.6 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.554e-05/0.1297, allocations: 46.73 kB / 411.7 MB, free: 2.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.2e-05/0.1298, allocations: 32.75 kB / 411.7 MB, free: 2.578 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004937/0.1303, allocations: 328.5 kB / 412 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.315e-05/0.1303, allocations: 12.22 kB / 412 MB, free: 2.207 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.16e-05/0.1303, allocations: 16 kB / 412.1 MB, free: 2.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007478/0.1311, allocations: 370.7 kB / 412.4 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.571e-05/0.1311, allocations: 4 kB / 412.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.908e-05/0.1311, allocations: 4 kB / 412.4 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.077e-06/0.1312, allocations: 8 kB / 412.4 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002194/0.1314, allocations: 83.95 kB / 412.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008627/0.1323, allocations: 0.5249 MB / 413 MB, free: 1.129 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007628/0.133, allocations: 319.7 kB / 413.4 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002551/0.1333, allocations: 146.4 kB / 413.5 MB, free: 0.6406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.118e-05/0.1334, allocations: 7.859 kB / 413.5 MB, free: 0.6328 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.964e-05/0.1334, allocations: 42.56 kB / 413.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 2.434e-06/0.1334, allocations: 0 / 413.5 MB, free: 0.582 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.00268/0.1361, allocations: 1.344 MB / 414.9 MB, free: 15.15 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001306/0.1362, allocations: 135.4 kB / 415 MB, free: 14.99 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003906/0.1366, allocations: 328.6 kB / 415.3 MB, free: 14.66 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.021e-05/0.1367, allocations: 33.83 kB / 415.4 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001122/0.1368, allocations: 153.1 kB / 415.5 MB, free: 14.47 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.197e-05/0.1369, allocations: 51.7 kB / 415.6 MB, free: 14.42 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.767e-05/0.137, allocations: 62.14 kB / 415.6 MB, free: 14.36 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.1372, allocations: 350.8 kB / 416 MB, free: 14 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001418/0.1373, allocations: 68.83 kB / 416 MB, free: 13.94 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.1377, allocations: 314.8 kB / 416.4 MB, free: 13.5 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005465/0.1382, allocations: 420.9 kB / 416.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.31e-06/0.1383, allocations: 4 kB / 416.8 MB, free: 12.97 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.000679/0.1389, allocations: 413.2 kB / 417.2 MB, free: 12.56 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.663e-05/0.139, allocations: 11.98 kB / 417.2 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.277e-05/0.139, allocations: 8 kB / 417.2 MB, free: 12.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.82e-05/0.139, allocations: 15.98 kB / 417.2 MB, free: 12.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002865/0.1393, allocations: 91.84 kB / 417.3 MB, free: 12.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.785e-05/0.1394, allocations: 19.92 kB / 417.3 MB, free: 12.41 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002294/0.1396, allocations: 20.38 kB / 417.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.773e-05/0.1396, allocations: 28 kB / 417.4 MB, free: 12.37 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.0002491/0.1399, allocations: 177.7 kB / 417.5 MB, free: 12.18 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005413/0.1404, allocations: 296.9 kB / 417.8 MB, free: 11.89 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007209/0.1412, allocations: 372.2 kB / 418.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.081e-05/0.1412, allocations: 8 kB / 418.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.772e-06/0.1412, allocations: 0 / 418.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.466e-06/0.1412, allocations: 3.984 kB / 418.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000464/0.1417, allocations: 333.2 kB / 418.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.247e-05/0.1417, allocations: 0 / 418.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005659/0.1423, allocations: 127.8 kB / 418.7 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.662e-06/0.1423, allocations: 4 kB / 418.7 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.55e-05/0.1423, allocations: 7.984 kB / 418.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.12e-06/0.1423, allocations: 4 kB / 418.7 MB, free: 10.99 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.044e-06/0.1424, allocations: 3.938 kB / 418.7 MB, free: 10.98 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001072/0.1434, allocations: 0.7188 MB / 419.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001102/0.1436, allocations: 112.9 kB / 419.5 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.1436, allocations: 16 kB / 419.5 MB, free: 10.1 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002455/0.1439, allocations: 19.92 kB / 419.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.031e-05/0.1439, allocations: 0 / 419.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.631e-05/0.144, allocations: 19.98 kB / 419.6 MB, free: 10.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002904/0.1443, allocations: 247.1 kB / 419.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1443, allocations: 0 / 419.8 MB, free: 9.82 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004497/0.1447, allocations: 60 kB / 419.9 MB, free: 9.762 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.001481/0.1462, allocations: 1.28 MB / 421.1 MB, free: 8.453 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000614/0.1468, allocations: 290.1 kB / 421.4 MB, free: 8.172 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1468, allocations: 4.062 kB / 421.4 MB, free: 8.168 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.543e-05/0.1469, allocations: 31.92 kB / 421.5 MB, free: 8.137 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007712/0.1477, allocations: 218.9 kB / 421.7 MB, free: 7.926 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005443/0.1532, allocations: 3.834 MB / 425.5 MB, free: 3.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005751/0.1538, allocations: 0.8073 MB / 426.3 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.1539, allocations: 31.28 kB / 426.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002045/0.1541, allocations: 119.4 kB / 426.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.1541, allocations: 0 / 426.5 MB, free: 2.785 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2582/0.4123, allocations: 7.108 MB / 433.6 MB, free: 22.41 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.989/9.402, allocations: 6.484 kB / 433.6 MB, free: 22.41 MB / 350.1 MB " [Timeout remaining time 651] (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: 11.989745954051614]