Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",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.001093/0.001093, allocations: 104.1 kB / 17.64 MB, free: 5.48 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.001074/0.001074, allocations: 192 kB / 18.55 MB, free: 4.566 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.432/1.432, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2187/0.2187, allocations: 44.19 MB / 336.6 MB, free: 2.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001943/0.001944, allocations: 58.77 kB / 408.5 MB, free: 27.11 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.115/0.1169, allocations: 60.83 MB / 469.4 MB, free: 14.25 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.004227/0.1212, allocations: 1.542 MB / 470.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002555/0.1215, allocations: 47.78 kB / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001005/0.1216, allocations: 0 / 470.9 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.1218, allocations: 19.86 kB / 471 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.45e-05/0.1219, allocations: 7.922 kB / 471 MB, free: 12.61 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.773e-05/0.122, allocations: 15.98 kB / 471 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000141/0.1222, allocations: 75.78 kB / 471.1 MB, free: 12.52 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003059/0.1225, allocations: 127.4 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.459e-05/0.1225, allocations: 39.86 kB / 471.2 MB, free: 12.35 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.186e-05/0.1226, allocations: 39.83 kB / 471.3 MB, free: 12.31 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.873e-05/0.1227, allocations: 8 kB / 471.3 MB, free: 12.3 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.094e-05/0.1227, allocations: 12 kB / 471.3 MB, free: 12.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 9.322e-05/0.1228, allocations: 63.89 kB / 471.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.929e-05/0.1229, allocations: 63.61 kB / 471.4 MB, free: 12.17 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000224/0.1231, allocations: 147.5 kB / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.45e-06/0.1231, allocations: 0 / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1231, allocations: 0 / 471.6 MB, free: 12.02 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.471e-05/0.1232, allocations: 4 kB / 471.6 MB, free: 12.02 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: 46 * Number of variables: 46 Notification: Performance of Generate backend data structure: time 0.0006318/0.1238, allocations: 435.7 kB / 472 MB, free: 11.55 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.756e-05/0.1239, allocations: 12.03 kB / 472 MB, free: 11.54 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.124, allocations: 67.06 kB / 472.1 MB, free: 11.46 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.493e-05/0.124, allocations: 16.75 kB / 472.1 MB, free: 11.45 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002512/0.1243, allocations: 220.1 kB / 472.3 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.765e-05/0.1243, allocations: 12.81 kB / 472.3 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.045e-05/0.1244, allocations: 24.36 kB / 472.3 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003835/0.1248, allocations: 215.6 kB / 472.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1248, allocations: 0 / 472.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.098e-05/0.1248, allocations: 4 kB / 472.5 MB, free: 10.94 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.221e-05/0.1248, allocations: 11.94 kB / 472.6 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002366/0.1251, allocations: 125.7 kB / 472.7 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007384/0.1258, allocations: 0.5216 MB / 473.2 MB, free: 10.23 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.865e-05/0.1259, allocations: 42.56 kB / 473.2 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.021e-05/0.126, allocations: 32.91 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.323e-05/0.126, allocations: 3.938 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.312e-05/0.1261, allocations: 34.56 kB / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.192e-06/0.1261, allocations: 0 / 473.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002603/0.1263, allocations: 77.61 kB / 473.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.931e-05/0.1264, allocations: 55.41 kB / 473.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.168e-05/0.1265, allocations: 105.8 kB / 473.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.398e-05/0.1265, allocations: 25.7 kB / 473.6 MB, free: 9.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001059/0.1266, allocations: 143.9 kB / 473.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.411e-05/0.1266, allocations: 15.75 kB / 473.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.658e-05/0.1267, allocations: 21.7 kB / 473.7 MB, free: 9.617 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001417/0.1268, allocations: 322.8 kB / 474.1 MB, free: 9.293 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.234e-05/0.1269, allocations: 7.984 kB / 474.1 MB, free: 9.285 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.429e-05/0.1269, allocations: 12 kB / 474.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.435e-05/0.127, allocations: 41.16 kB / 474.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.127, allocations: 0 / 474.1 MB, free: 9.23 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001311/0.1272, allocations: 65.67 kB / 474.2 MB, free: 9.16 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.674e-05/0.1272, allocations: 8 kB / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.059e-06/0.1272, allocations: 0 / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.372e-05/0.1272, allocations: 0 / 474.2 MB, free: 9.152 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.203e-05/0.1273, allocations: 8 kB / 474.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.831e-06/0.1273, allocations: 0 / 474.2 MB, free: 9.145 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.927e-05/0.1274, allocations: 7.906 kB / 474.2 MB, free: 9.137 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.917e-06/0.1274, allocations: 3.984 kB / 474.2 MB, free: 9.133 MB / 350.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 (5): * Single equations (assignments): 5 * 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.0001162/0.1275, allocations: 133.8 kB / 474.3 MB, free: 8.992 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.481e-05/0.1275, allocations: 8 kB / 474.4 MB, free: 8.984 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.131e-05/0.1276, allocations: 7.969 kB / 474.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.515e-06/0.1276, allocations: 0 / 474.4 MB, free: 8.98 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.1276, allocations: 4 kB / 474.4 MB, free: 8.977 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.099e-06/0.1276, allocations: 7.922 kB / 474.4 MB, free: 8.969 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000399/0.128, allocations: 362.5 kB / 474.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-06/0.128, allocations: 0 / 474.7 MB, free: 8.559 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.341e-05/0.128, allocations: 11.98 kB / 474.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.386e-06/0.1281, allocations: 4 kB / 474.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.1281, allocations: 0 / 474.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.843e-06/0.1281, allocations: 8.188 kB / 474.7 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.1281, allocations: 3.938 kB / 474.8 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001747/0.1283, allocations: 163.4 kB / 474.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.876e-05/0.1283, allocations: 77.3 kB / 475 MB, free: 8.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.695e-05/0.1284, allocations: 8 kB / 475 MB, free: 8.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.5e-05/0.1284, allocations: 4 kB / 475 MB, free: 8.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.815e-05/0.1285, allocations: 15.92 kB / 475 MB, free: 8.234 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.056e-06/0.1285, allocations: 0 / 475 MB, free: 8.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.85e-05/0.1285, allocations: 87.2 kB / 475.1 MB, free: 8.148 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1285, allocations: 4 kB / 475.1 MB, free: 8.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002495/0.1288, allocations: 31.69 kB / 475.1 MB, free: 8.113 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * 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 simulation (5): * Single equations (assignments): 5 * 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.0005298/0.1293, allocations: 0.7123 MB / 475.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001474/0.1295, allocations: 28.05 kB / 475.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1295, allocations: 0 / 475.9 MB, free: 7.344 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 5.135e-05/0.1296, allocations: 23.92 kB / 475.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003342/0.1299, allocations: 15.94 kB / 475.9 MB, free: 7.305 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001606/0.1315, allocations: 1.446 MB / 477.4 MB, free: 5.781 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003455/0.1319, allocations: 0.7353 MB / 478.1 MB, free: 5.02 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 3.425e-05/0.1319, allocations: 7.969 kB / 478.1 MB, free: 5.012 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.665e-05/0.132, allocations: 47.42 kB / 478.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of SimCode: time 4.3e-07/0.132, allocations: 0 / 478.1 MB, free: 4.965 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01922/0.1512, allocations: 1.944 MB / 480.1 MB, free: 3.066 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.509/7.66, allocations: 1.031 kB / 480.1 MB, free: 3.066 MB / 350.1 MB (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.sim & python3 -m fmpy simulate --output-file ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0008 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches