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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001134/0.001134, allocations: 100.2 kB / 16.5 MB, free: 6.688 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.001035/0.001035, allocations: 192.8 kB / 17.42 MB, free: 6.09 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.398/1.398, allocations: 222.9 MB / 241.1 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001212/0.001212, allocations: 51.52 kB / 300.1 MB, free: 6.191 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1107/0.112, allocations: 49.44 MB / 349.5 MB, free: 4.742 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Systems.ControlledMixingUnit): time 0.00403/0.116, allocations: 2.253 MB / 351.8 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001222/0.1173, allocations: 0.5965 MB / 352.3 MB, free: 1.863 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002082/0.1175, allocations: 4 kB / 352.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001674/0.1177, allocations: 15.8 kB / 352.4 MB, free: 1.844 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003355/0.1181, allocations: 55.56 kB / 352.4 MB, free: 1.789 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002862/0.1184, allocations: 67.92 kB / 352.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003489/0.1187, allocations: 259 kB / 352.7 MB, free: 1.469 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001686/0.1189, allocations: 72.92 kB / 352.8 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000191/0.1191, allocations: 99.39 kB / 352.9 MB, free: 1.297 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002554/0.1194, allocations: 151.2 kB / 353.1 MB, free: 1.148 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.543e-05/0.1194, allocations: 12 kB / 353.1 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.44e-05/0.1195, allocations: 16 kB / 353.1 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.518e-05/0.1196, allocations: 51.7 kB / 353.1 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001235/0.1197, allocations: 123.1 kB / 353.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002701/0.12, allocations: 243.2 kB / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.598e-06/0.12, allocations: 0 / 353.5 MB, free: 0.7109 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.12, allocations: 4 kB / 353.5 MB, free: 0.707 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.082e-05/0.12, allocations: 0 / 353.5 MB, free: 0.707 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: 34 * Number of variables: 34 Notification: Performance of Generate backend data structure: time 0.001214/0.1212, allocations: 0.6152 MB / 354.1 MB, free: 44 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.1213, allocations: 12.03 kB / 354.1 MB, free: 32 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.262e-05/0.1213, allocations: 46.73 kB / 354.2 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.822e-05/0.1214, allocations: 36.47 kB / 354.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000386/0.1218, allocations: 308.4 kB / 354.5 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.969e-05/0.1219, allocations: 16.22 kB / 354.5 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.007e-05/0.1219, allocations: 15.91 kB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006719/0.1226, allocations: 373.9 kB / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.1226, allocations: 0 / 354.9 MB, free: 15.19 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.283e-05/0.1226, allocations: 11.98 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.342e-06/0.1226, allocations: 3.938 kB / 354.9 MB, free: 15.18 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000211/0.1229, allocations: 91.89 kB / 355 MB, free: 15.09 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007478/0.1236, allocations: 0.5249 MB / 355.5 MB, free: 14.5 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006981/0.1243, allocations: 315.6 kB / 355.8 MB, free: 14.17 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002292/0.1246, allocations: 140.5 kB / 356 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.176e-05/0.1246, allocations: 8.656 kB / 356 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1246, allocations: 38.5 kB / 356 MB, free: 13.97 MB / 302.1 MB Notification: Performance of pre-optimization done (n=29): time 1.693e-06/0.1247, allocations: 4 kB / 356 MB, free: 13.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.00243/0.1271, allocations: 1.329 MB / 357.4 MB, free: 12.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.1272, allocations: 134.7 kB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003715/0.1276, allocations: 324.6 kB / 357.8 MB, free: 12.06 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.075e-05/0.1276, allocations: 29.7 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.227e-05/0.1277, allocations: 149.1 kB / 358 MB, free: 11.88 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.425e-05/0.1278, allocations: 47.53 kB / 358 MB, free: 11.83 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.739e-05/0.1279, allocations: 70.12 kB / 358.1 MB, free: 11.75 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.128, allocations: 350.8 kB / 358.4 MB, free: 11.4 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001601/0.1282, allocations: 68.83 kB / 358.5 MB, free: 11.33 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003108/0.1285, allocations: 314.8 kB / 358.8 MB, free: 10.91 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004786/0.129, allocations: 420.8 kB / 359.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.129, allocations: 4 kB / 359.2 MB, free: 10.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.0006793/0.1297, allocations: 413.2 kB / 359.6 MB, free: 9.965 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.193e-05/0.1297, allocations: 8 kB / 359.6 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.687e-05/0.1298, allocations: 8.188 kB / 359.6 MB, free: 9.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.271e-05/0.1298, allocations: 16 kB / 359.7 MB, free: 9.934 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002783/0.1301, allocations: 95.83 kB / 359.8 MB, free: 9.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.798e-05/0.1301, allocations: 15.94 kB / 359.8 MB, free: 9.824 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000243/0.1304, allocations: 35.81 kB / 359.8 MB, free: 9.789 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.226e-05/0.1304, allocations: 20.28 kB / 359.8 MB, free: 9.77 MB / 302.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.0001814/0.1306, allocations: 177.5 kB / 360 MB, free: 9.586 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004838/0.1311, allocations: 297.1 kB / 360.3 MB, free: 9.289 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006227/0.1317, allocations: 379.2 kB / 360.7 MB, free: 8.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.142e-06/0.1317, allocations: 4 kB / 360.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.121e-06/0.1317, allocations: 0 / 360.7 MB, free: 8.906 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.221e-06/0.1317, allocations: 3.984 kB / 360.7 MB, free: 8.902 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003863/0.1321, allocations: 333.2 kB / 361 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.1322, allocations: 0 / 361 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005634/0.1327, allocations: 123.8 kB / 361.1 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.811e-06/0.1327, allocations: 4 kB / 361.1 MB, free: 8.402 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.1328, allocations: 8 kB / 361.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.236e-06/0.1328, allocations: 0 / 361.1 MB, free: 8.395 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.936e-06/0.1328, allocations: 7.938 kB / 361.1 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009903/0.1338, allocations: 0.7223 MB / 361.9 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.988e-05/0.1339, allocations: 116.7 kB / 362 MB, free: 7.512 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.595e-05/0.1339, allocations: 11.94 kB / 362 MB, free: 7.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002823/0.1342, allocations: 12 kB / 362 MB, free: 7.488 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.167e-05/0.1343, allocations: 7.984 kB / 362 MB, free: 7.48 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.364e-05/0.1343, allocations: 12 kB / 362 MB, free: 7.469 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002518/0.1346, allocations: 247.1 kB / 362.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1346, allocations: 0 / 362.3 MB, free: 7.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000436/0.135, allocations: 64 kB / 362.3 MB, free: 7.168 MB / 302.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.001272/0.1363, allocations: 1.268 MB / 363.6 MB, free: 5.863 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005312/0.1368, allocations: 286 kB / 363.9 MB, free: 5.586 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1369, allocations: 4.25 kB / 363.9 MB, free: 5.582 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.348e-05/0.1369, allocations: 31.98 kB / 363.9 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000823/0.1378, allocations: 212.3 kB / 364.1 MB, free: 5.344 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003908/0.1417, allocations: 2.308 MB / 366.4 MB, free: 2.859 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004656/0.1422, allocations: 0.8073 MB / 367.2 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000112/0.1423, allocations: 35.27 kB / 367.3 MB, free: 1.996 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001893/0.1425, allocations: 115.4 kB / 367.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of SimCode: time 7.21e-07/0.1425, allocations: 0 / 367.4 MB, free: 1.883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1998/0.3423, allocations: 6.443 MB / 373.8 MB, free: 24.27 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001528/0.3425, allocations: 215.4 kB / 374 MB, free: 24.02 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.897/2.239, allocations: 0 / 374 MB, free: 24.02 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Systems.ControlledMixingUnit_res.mat","/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) Reference file matches