Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001492/0.001492, allocations: 96.88 kB / 16.5 MB, free: 6.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001748/0.001748, allocations: 195.1 kB / 17.42 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.421/1.421, allocations: 222.9 MB / 241.1 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 43.33 kB / 300.1 MB, free: 6.188 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09742/0.09862, allocations: 49.45 MB / 349.5 MB, free: 4.734 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl): time 0.003347/0.102, allocations: 2.122 MB / 351.6 MB, free: 2.59 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009886/0.103, allocations: 0.5496 MB / 352.2 MB, free: 2.039 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001483/0.1032, allocations: 3.938 kB / 352.2 MB, free: 2.035 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001175/0.1033, allocations: 15.81 kB / 352.2 MB, free: 2.02 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002665/0.1036, allocations: 63.59 kB / 352.3 MB, free: 1.957 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001771/0.1038, allocations: 43.95 kB / 352.3 MB, free: 1.914 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002894/0.1041, allocations: 247 kB / 352.6 MB, free: 1.672 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001335/0.1042, allocations: 52.73 kB / 352.6 MB, free: 1.621 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.1044, allocations: 99.42 kB / 352.7 MB, free: 1.523 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001791/0.1046, allocations: 131.2 kB / 352.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.084e-05/0.1046, allocations: 16 kB / 352.8 MB, free: 1.379 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.1047, allocations: 12 kB / 352.9 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.127e-05/0.1048, allocations: 51.69 kB / 352.9 MB, free: 1.316 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1049, allocations: 115.2 kB / 353 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002104/0.1051, allocations: 215.4 kB / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.1051, allocations: 0 / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.1051, allocations: 0 / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.472e-06/0.1051, allocations: 0 / 353.2 MB, free: 0.9922 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 26 * Number of variables: 26 Notification: Performance of Generate backend data structure: time 0.00115/0.1063, allocations: 0.6033 MB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.494e-05/0.1063, allocations: 12.03 kB / 353.8 MB, free: 336 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.234e-05/0.1064, allocations: 50.67 kB / 353.9 MB, free: 276 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.799e-05/0.1065, allocations: 32.56 kB / 353.9 MB, free: 244 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003908/0.1069, allocations: 304.1 kB / 354.2 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.688e-05/0.1069, allocations: 15.88 kB / 354.2 MB, free: 15.89 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.972e-05/0.1069, allocations: 15.98 kB / 354.3 MB, free: 15.87 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002659/0.1072, allocations: 117.6 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.478e-06/0.1072, allocations: 0 / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.553e-05/0.1072, allocations: 4 kB / 354.4 MB, free: 15.75 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.277e-06/0.1073, allocations: 4 kB / 354.4 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001798/0.1074, allocations: 79.95 kB / 354.5 MB, free: 15.66 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008519/0.1083, allocations: 0.5313 MB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005296/0.1088, allocations: 174.7 kB / 355.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001285/0.109, allocations: 64.78 kB / 355.2 MB, free: 14.84 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.398e-05/0.109, allocations: 4 kB / 355.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.101e-05/0.109, allocations: 34.56 kB / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of pre-optimization done (n=13): time 1.292e-06/0.109, allocations: 0 / 355.3 MB, free: 14.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=16): time 0.001489/0.1105, allocations: 0.6652 MB / 355.9 MB, free: 14.07 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.512e-05/0.1106, allocations: 59.34 kB / 356 MB, free: 14 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004194/0.111, allocations: 328.6 kB / 356.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.222e-05/0.111, allocations: 29.7 kB / 356.3 MB, free: 13.63 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.1111, allocations: 164.2 kB / 356.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.353e-05/0.1112, allocations: 55.2 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.652e-05/0.1113, allocations: 37.7 kB / 356.6 MB, free: 13.37 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1114, allocations: 346.8 kB / 356.9 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.1116, allocations: 59.97 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001211/0.1117, allocations: 62.78 kB / 357 MB, free: 12.9 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002674/0.112, allocations: 140.8 kB / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.52e-07/0.112, allocations: 0 / 357.2 MB, free: 12.76 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003683/0.1123, allocations: 214.7 kB / 357.4 MB, free: 12.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.1124, allocations: 11.94 kB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.701e-06/0.1124, allocations: 0 / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.305e-05/0.1124, allocations: 4 kB / 357.4 MB, free: 12.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002958/0.1127, allocations: 55.91 kB / 357.5 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.608e-06/0.1127, allocations: 4 kB / 357.5 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001502/0.1129, allocations: 15.92 kB / 357.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.1129, allocations: 4 kB / 357.5 MB, free: 12.45 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.000116/0.113, allocations: 129.8 kB / 357.6 MB, free: 12.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.472e-05/0.1131, allocations: 27.62 kB / 357.6 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004156/0.1135, allocations: 231.2 kB / 357.9 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.553e-06/0.1135, allocations: 3.938 kB / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.951e-06/0.1135, allocations: 0 / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.1135, allocations: 0 / 357.9 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004569/0.114, allocations: 321.4 kB / 358.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.459e-06/0.114, allocations: 0 / 358.2 MB, free: 11.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003992/0.1144, allocations: 63.89 kB / 358.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.697e-06/0.1145, allocations: 0 / 358.2 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.798e-05/0.1145, allocations: 4 kB / 358.2 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.138e-06/0.1145, allocations: 7.938 kB / 358.3 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/0.1145, allocations: 3.984 kB / 358.3 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007677/0.1153, allocations: 383 kB / 358.6 MB, free: 11.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001344/0.1154, allocations: 112.7 kB / 358.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.98e-05/0.1155, allocations: 8 kB / 358.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002104/0.1157, allocations: 16 kB / 358.8 MB, free: 11.07 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.274e-05/0.1158, allocations: 15.97 kB / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.571e-05/0.1158, allocations: 8 kB / 358.8 MB, free: 11.05 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003073/0.1161, allocations: 243.1 kB / 359 MB, free: 10.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 6.31e-07/0.1161, allocations: 0 / 359 MB, free: 10.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003128/0.1164, allocations: 44 kB / 359.1 MB, free: 10.77 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (invMixingUnit.c,invMixingUnit.T,filter.x[1],mixingUnit.c,mixingUnit.T) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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.001013/0.1175, allocations: 0.9333 MB / 360 MB, free: 9.809 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003881/0.1179, allocations: 155.9 kB / 360.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1179, allocations: 0 / 360.2 MB, free: 9.656 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001703/0.1181, allocations: 83.91 kB / 360.2 MB, free: 9.574 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004681/0.1185, allocations: 33.02 kB / 360.3 MB, free: 9.543 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004299/0.1228, allocations: 3.153 MB / 363.4 MB, free: 6.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003782/0.1232, allocations: 0.7638 MB / 364.2 MB, free: 5.527 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001309/0.1234, allocations: 30.28 kB / 364.2 MB, free: 5.496 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001597/0.1236, allocations: 91.39 kB / 364.3 MB, free: 5.406 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.1236, allocations: 0 / 364.3 MB, free: 5.406 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01652/0.1401, allocations: 5.29 MB / 369.6 MB, free: 336 kB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003487/0.1405, allocations: 264.1 kB / 369.9 MB, free: 28 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.85/1.991, allocations: 8.062 kB / 369.9 MB, free: 20 kB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl_fmu --startTime=0 --stopTime=500 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Systems_Utilities_ComponentsMixingUnit_MixingUnitWithContinuousControl.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Systems/Utilities/ComponentsMixingUnit/MixingUnitWithContinuousControl/MixingUnitWithContinuousControl.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Systems.Utilities.ComponentsMixingUnit.MixingUnitWithContinuousControl.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches