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.001318/0.001318, allocations: 124 kB / 17.79 MB, free: 5.266 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.001443/0.001443, allocations: 190.9 kB / 20.73 MB, free: 2.328 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.579/1.579, allocations: 225.6 MB / 249.1 MB, free: 3.617 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.001529/0.001529, allocations: 52.06 kB / 365.6 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1157/0.1173, allocations: 52.13 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004371/0.1216, allocations: 2.227 MB / 420 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001382/0.123, allocations: 0.6004 MB / 420.6 MB, free: 9.801 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001441/0.1231, allocations: 8 kB / 420.6 MB, free: 9.793 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1233, allocations: 27.61 kB / 420.6 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003053/0.1236, allocations: 79.41 kB / 420.7 MB, free: 9.688 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002822/0.1239, allocations: 75.72 kB / 420.8 MB, free: 9.617 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003745/0.1243, allocations: 275 kB / 421 MB, free: 9.348 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001688/0.1244, allocations: 56.94 kB / 421.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001868/0.1246, allocations: 123.3 kB / 421.2 MB, free: 9.164 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001978/0.1248, allocations: 143.3 kB / 421.4 MB, free: 9.023 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 5.034e-05/0.1249, allocations: 24 kB / 421.4 MB, free: 9 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.908e-05/0.1249, allocations: 20 kB / 421.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.073e-05/0.125, allocations: 59.7 kB / 421.5 MB, free: 8.922 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001473/0.1251, allocations: 139 kB / 421.6 MB, free: 8.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003355/0.1255, allocations: 262.6 kB / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.448e-06/0.1255, allocations: 0 / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1255, allocations: 0 / 421.9 MB, free: 8.527 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1255, allocations: 0 / 421.9 MB, free: 8.527 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.001218/0.1267, allocations: 0.6268 MB / 422.5 MB, free: 7.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.268e-05/0.1268, allocations: 12.03 kB / 422.5 MB, free: 7.84 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.611e-05/0.1268, allocations: 46.73 kB / 422.5 MB, free: 7.785 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.655e-05/0.1269, allocations: 32.75 kB / 422.6 MB, free: 7.754 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004532/0.1273, allocations: 328.5 kB / 422.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.004e-05/0.1274, allocations: 12.22 kB / 422.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.106e-05/0.1274, allocations: 16 kB / 422.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000732/0.1282, allocations: 373.8 kB / 423.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.105e-05/0.1282, allocations: 0 / 423.3 MB, free: 6.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.993e-05/0.1282, allocations: 4 kB / 423.3 MB, free: 6.977 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.776e-06/0.1282, allocations: 4 kB / 423.3 MB, free: 6.973 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002365/0.1284, allocations: 91.89 kB / 423.4 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.1292, allocations: 0.521 MB / 423.9 MB, free: 6.305 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.1299, allocations: 307.8 kB / 424.2 MB, free: 5.977 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002243/0.1302, allocations: 126.7 kB / 424.3 MB, free: 5.844 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.983e-05/0.1302, allocations: 15.84 kB / 424.3 MB, free: 5.828 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.642e-05/0.1302, allocations: 38.5 kB / 424.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.1302, allocations: 4 kB / 424.4 MB, free: 5.777 MB / 350.1 MB Notification: Performance of matching and sorting (n=40): time 0.002595/0.1328, allocations: 1.347 MB / 425.7 MB, free: 4.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001344/0.133, allocations: 135.4 kB / 425.9 MB, free: 4.184 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003852/0.1334, allocations: 324.6 kB / 426.2 MB, free: 3.859 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.416e-05/0.1334, allocations: 37.7 kB / 426.2 MB, free: 3.816 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001021/0.1335, allocations: 137.1 kB / 426.4 MB, free: 3.68 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.1335, allocations: 55.75 kB / 426.4 MB, free: 3.625 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.445e-05/0.1336, allocations: 70.12 kB / 426.5 MB, free: 3.551 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.1338, allocations: 346.8 kB / 426.8 MB, free: 3.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001432/0.134, allocations: 68.83 kB / 426.9 MB, free: 3.137 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003485/0.1343, allocations: 319.4 kB / 427.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005126/0.1348, allocations: 420.8 kB / 427.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1348, allocations: 0 / 427.6 MB, free: 2.168 MB / 350.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006475/0.1355, allocations: 413.5 kB / 428 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.338e-05/0.1355, allocations: 8 kB / 428 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.353e-05/0.1355, allocations: 12 kB / 428 MB, free: 1.738 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.682e-05/0.1355, allocations: 15.94 kB / 428 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002779/0.1358, allocations: 95.83 kB / 428.1 MB, free: 1.629 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.063e-05/0.1358, allocations: 15.94 kB / 428.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002426/0.1361, allocations: 27.92 kB / 428.2 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.146e-05/0.1361, allocations: 24 kB / 428.2 MB, free: 1.562 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.0002299/0.1363, allocations: 170.6 kB / 428.4 MB, free: 1.387 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005184/0.1369, allocations: 292.9 kB / 428.7 MB, free: 1.094 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006896/0.1375, allocations: 383.5 kB / 429 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.426e-06/0.1375, allocations: 8 kB / 429 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.1376, allocations: 4 kB / 429 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.935e-06/0.1376, allocations: 3.984 kB / 429 MB, free: 0.6953 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.138, allocations: 325.3 kB / 429.4 MB, free: 336 kB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.635e-06/0.138, allocations: 4 kB / 429.4 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006006/0.1386, allocations: 127.8 kB / 429.5 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.187e-06/0.1386, allocations: 0 / 429.5 MB, free: 204 kB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.795e-05/0.1386, allocations: 12 kB / 429.5 MB, free: 192 kB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.348e-06/0.1386, allocations: 4 kB / 429.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.693e-06/0.1386, allocations: 0 / 429.5 MB, free: 188 kB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001089/0.1397, allocations: 0.7186 MB / 430.2 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001241/0.1399, allocations: 121 kB / 430.3 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.514e-05/0.1399, allocations: 12 kB / 430.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002517/0.1402, allocations: 11.98 kB / 430.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.325e-05/0.1402, allocations: 7.984 kB / 430.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.545e-05/0.1402, allocations: 12 kB / 430.4 MB, free: 15.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002815/0.1405, allocations: 247 kB / 430.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1405, allocations: 4.062 kB / 430.6 MB, free: 15.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004635/0.141, allocations: 64 kB / 430.7 MB, free: 14.96 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.001481/0.1425, allocations: 1.28 MB / 432 MB, free: 13.65 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0005807/0.143, allocations: 282.2 kB / 432.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.143, allocations: 0 / 432.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 7.514e-05/0.1431, allocations: 32.05 kB / 432.3 MB, free: 13.34 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007771/0.1439, allocations: 200.3 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.005673/0.1496, allocations: 3.834 MB / 436.3 MB, free: 8.988 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004986/0.1501, allocations: 0.8073 MB / 437.1 MB, free: 8.156 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001139/0.1502, allocations: 35.28 kB / 437.2 MB, free: 8.121 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002295/0.1504, allocations: 115.4 kB / 437.3 MB, free: 8.008 MB / 366.1 MB Notification: Performance of SimCode: time 1.954e-06/0.1504, allocations: 3.938 kB / 437.3 MB, free: 8.004 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03342/0.1838, allocations: 7.18 MB / 444.4 MB, free: 0.9336 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.428/9.612, allocations: 20.83 kB / 444.5 MB, free: 0.918 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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv --start-time 0 --stop-time 300 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0545355 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.csv","/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_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable filter.x[1] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[1] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[2] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[2] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable filter.x[3] in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable filter.x[3] from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.c in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.c from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! Error: Could not read variable invMixingUnit.T in file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv. Warning: Get data of variable invMixingUnit.T from file Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,filter.x[1],filter.x[2],filter.x[3],invMixingUnit.c,invMixingUnit.T,mixingUnit.c,mixingUnit.T Variables in the result:time,mixingUnit.T,mixingUnit.c [Calling sys.exit(0), Time elapsed: 12.65412984136492]