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.001867/0.001867, allocations: 109.5 kB / 20.43 MB, free: 1.449 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.001654/0.001654, allocations: 187.4 kB / 23.72 MB, free: 4.684 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.636/1.636, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.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.001744/0.001744, allocations: 47.92 kB / 370.4 MB, free: 9.863 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3313/0.333, allocations: 52.18 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.004269/0.3373, allocations: 2.244 MB / 424.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001338/0.3386, allocations: 0.6043 MB / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001464/0.3388, allocations: 0 / 425.5 MB, free: 11.73 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001802/0.339, allocations: 27.61 kB / 425.5 MB, free: 11.7 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003267/0.3393, allocations: 79.41 kB / 425.6 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003221/0.3396, allocations: 75.09 kB / 425.7 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003952/0.34, allocations: 283 kB / 425.9 MB, free: 11.27 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001787/0.3402, allocations: 45.14 kB / 426 MB, free: 11.22 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001856/0.3404, allocations: 131.4 kB / 426.1 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002152/0.3406, allocations: 139.2 kB / 426.2 MB, free: 10.96 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.574e-05/0.3406, allocations: 20 kB / 426.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.94e-05/0.3407, allocations: 24 kB / 426.3 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.528e-05/0.3408, allocations: 67.67 kB / 426.3 MB, free: 10.85 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001427/0.3409, allocations: 131.1 kB / 426.5 MB, free: 10.72 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003496/0.3412, allocations: 255.1 kB / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.3413, allocations: 4 kB / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3413, allocations: 0 / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.912e-06/0.3413, allocations: 0 / 426.7 MB, free: 10.47 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.001227/0.3425, allocations: 0.5632 MB / 427.3 MB, free: 9.875 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.385e-05/0.3425, allocations: 8.031 kB / 427.3 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.562e-05/0.3426, allocations: 50.67 kB / 427.4 MB, free: 9.809 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.32e-05/0.3427, allocations: 32.75 kB / 427.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.3431, allocations: 262.7 kB / 427.6 MB, free: 9.5 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.098e-05/0.3431, allocations: 12.22 kB / 427.7 MB, free: 9.488 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.171e-05/0.3432, allocations: 16 kB / 427.7 MB, free: 9.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007089/0.3439, allocations: 367.8 kB / 428 MB, free: 9.098 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.119e-05/0.3439, allocations: 3.938 kB / 428 MB, free: 9.094 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.818e-05/0.3439, allocations: 4 kB / 428 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.638e-06/0.3439, allocations: 8 kB / 428 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002224/0.3442, allocations: 99.86 kB / 428.1 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008014/0.345, allocations: 0.4889 MB / 428.6 MB, free: 8.445 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007532/0.3457, allocations: 307.9 kB / 428.9 MB, free: 8.117 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002528/0.346, allocations: 134 kB / 429.1 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.082e-05/0.346, allocations: 11.84 kB / 429.1 MB, free: 7.969 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.858e-05/0.346, allocations: 42.56 kB / 429.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of pre-optimization done (n=29): time 1.744e-06/0.346, allocations: 0 / 429.1 MB, free: 7.918 MB / 334.1 MB Notification: Performance of matching and sorting (n=40): time 0.002578/0.3486, allocations: 1.188 MB / 430.3 MB, free: 6.676 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000144/0.3488, allocations: 138.7 kB / 430.4 MB, free: 6.516 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004147/0.3492, allocations: 328.6 kB / 430.8 MB, free: 6.191 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.286e-05/0.3492, allocations: 37.83 kB / 430.8 MB, free: 6.148 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.3493, allocations: 153 kB / 430.9 MB, free: 5.992 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.863e-05/0.3494, allocations: 47.72 kB / 431 MB, free: 5.945 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.985e-05/0.3495, allocations: 62.14 kB / 431.1 MB, free: 5.879 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001821/0.3497, allocations: 354.8 kB / 431.4 MB, free: 5.523 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001545/0.3498, allocations: 64.84 kB / 431.5 MB, free: 5.461 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003537/0.3502, allocations: 318.7 kB / 431.8 MB, free: 5.023 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005592/0.3507, allocations: 420.9 kB / 432.2 MB, free: 4.492 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.169e-06/0.3507, allocations: 4 kB / 432.2 MB, free: 4.488 MB / 334.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0007046/0.3515, allocations: 417.2 kB / 432.6 MB, free: 4.074 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.3515, allocations: 11.94 kB / 432.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.268e-05/0.3515, allocations: 8 kB / 432.6 MB, free: 4.055 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.506e-05/0.3515, allocations: 12 kB / 432.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002927/0.3518, allocations: 95.83 kB / 432.7 MB, free: 3.949 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.002e-05/0.3518, allocations: 15.94 kB / 432.7 MB, free: 3.934 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002332/0.3521, allocations: 20.41 kB / 432.8 MB, free: 3.914 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.101e-05/0.3521, allocations: 28 kB / 432.8 MB, free: 3.887 MB / 334.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.000203/0.3523, allocations: 169.6 kB / 432.9 MB, free: 3.711 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005262/0.3528, allocations: 294.4 kB / 433.2 MB, free: 3.418 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007355/0.3536, allocations: 375.4 kB / 433.6 MB, free: 3.039 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.328e-06/0.3536, allocations: 8 kB / 433.6 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.149e-06/0.3536, allocations: 0 / 433.6 MB, free: 3.031 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.244e-06/0.3536, allocations: 4 kB / 433.6 MB, free: 3.027 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004578/0.354, allocations: 308.3 kB / 433.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.064e-06/0.354, allocations: 0 / 433.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006295/0.3547, allocations: 123.8 kB / 434 MB, free: 2.562 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.135e-05/0.3547, allocations: 7.984 kB / 434 MB, free: 2.555 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3547, allocations: 11.94 kB / 434.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.357e-06/0.3547, allocations: 0 / 434.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.3547, allocations: 0 / 434.1 MB, free: 2.543 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001102/0.3558, allocations: 0.7148 MB / 434.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.782e-05/0.3559, allocations: 43.78 kB / 434.8 MB, free: 1.766 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.103e-05/0.356, allocations: 19.98 kB / 434.8 MB, free: 1.746 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000267/0.3562, allocations: 12 kB / 434.8 MB, free: 1.734 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.3563, allocations: 11.92 kB / 434.9 MB, free: 1.723 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.253e-05/0.3563, allocations: 8 kB / 434.9 MB, free: 1.715 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002949/0.3566, allocations: 251.1 kB / 435.1 MB, free: 1.473 MB / 334.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3566, allocations: 3.938 kB / 435.1 MB, free: 1.469 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004854/0.3571, allocations: 60 kB / 435.2 MB, free: 1.41 MB / 334.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.00149/0.3586, allocations: 1.272 MB / 436.4 MB, free: 112 kB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006186/0.3592, allocations: 290.6 kB / 436.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.465e-06/0.3592, allocations: 0 / 436.7 MB, free: 15.83 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 7.124e-05/0.3593, allocations: 23.98 kB / 436.7 MB, free: 15.8 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008044/0.3601, allocations: 197.4 kB / 436.9 MB, free: 15.61 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005406/0.3655, allocations: 3.839 MB / 440.8 MB, free: 11.45 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005247/0.366, allocations: 0.8035 MB / 441.6 MB, free: 10.62 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.3661, allocations: 35.27 kB / 441.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002371/0.3663, allocations: 119.4 kB / 441.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of SimCode: time 1.192e-06/0.3663, allocations: 0 / 441.7 MB, free: 10.47 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0416/0.408, allocations: 7.612 MB / 449.3 MB, free: 2.996 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.21/12.62, allocations: 6.812 kB / 449.4 MB, free: 2.992 MB / 350.1 MB " [Timeout remaining time 647] (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: 15.562789847001113]