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.00117/0.00117, allocations: 104 kB / 17.63 MB, free: 5.523 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.001052/0.001052, allocations: 192.1 kB / 18.56 MB, free: 4.605 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.384/1.384, allocations: 222.9 MB / 242.3 MB, free: 15.21 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.2257/0.2257, allocations: 44.19 MB / 336.6 MB, free: 2.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.2 kB / 408.5 MB, free: 27.14 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.12/0.1213, allocations: 60.82 MB / 469.4 MB, free: 14.29 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003227/0.1246, allocations: 1.541 MB / 470.9 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001442/0.1247, allocations: 47.83 kB / 470.9 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.585e-05/0.1248, allocations: 7.938 kB / 470.9 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001579/0.125, allocations: 11.86 kB / 471 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 3.34e-05/0.125, allocations: 11.92 kB / 471 MB, free: 12.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.373e-05/0.1251, allocations: 23.97 kB / 471 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001249/0.1253, allocations: 67.78 kB / 471.1 MB, free: 12.57 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000295/0.1256, allocations: 131.4 kB / 471.2 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.063e-05/0.1256, allocations: 35.86 kB / 471.2 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.467e-05/0.1257, allocations: 39.84 kB / 471.3 MB, free: 12.36 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.855e-05/0.1257, allocations: 11.98 kB / 471.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.792e-05/0.1258, allocations: 8 kB / 471.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.608e-05/0.1258, allocations: 63.88 kB / 471.3 MB, free: 12.27 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.125e-05/0.1259, allocations: 67.55 kB / 471.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.1261, allocations: 135.6 kB / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1261, allocations: 0 / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.332e-06/0.1261, allocations: 0 / 471.5 MB, free: 12.07 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.855e-06/0.1261, allocations: 4 kB / 471.5 MB, free: 12.07 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.0005419/0.1267, allocations: 443.6 kB / 472 MB, free: 11.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.961e-05/0.1267, allocations: 12.03 kB / 472 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.755e-05/0.1268, allocations: 67.06 kB / 472.1 MB, free: 11.5 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.275e-05/0.1269, allocations: 20.75 kB / 472.1 MB, free: 11.48 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002234/0.1271, allocations: 216.1 kB / 472.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.312e-05/0.1271, allocations: 16.81 kB / 472.3 MB, free: 11.22 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.657e-05/0.1272, allocations: 24.36 kB / 472.3 MB, free: 11.2 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003365/0.1275, allocations: 207.6 kB / 472.5 MB, free: 10.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.032e-05/0.1275, allocations: 4 kB / 472.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.1276, allocations: 8 kB / 472.5 MB, free: 10.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.667e-05/0.1276, allocations: 4 kB / 472.5 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002424/0.1278, allocations: 133.6 kB / 472.7 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007568/0.1286, allocations: 0.5216 MB / 473.2 MB, free: 10.27 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.333e-05/0.1287, allocations: 42.5 kB / 473.2 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.572e-05/0.1288, allocations: 28.97 kB / 473.3 MB, free: 10.19 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.542e-05/0.1288, allocations: 4 kB / 473.3 MB, free: 10.18 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.1288, allocations: 30.56 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 1.132e-06/0.1288, allocations: 4 kB / 473.3 MB, free: 10.14 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002373/0.1291, allocations: 73.61 kB / 473.4 MB, free: 10.06 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.412e-05/0.1291, allocations: 51.41 kB / 473.4 MB, free: 10 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.468e-05/0.1292, allocations: 113.8 kB / 473.5 MB, free: 9.879 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.495e-05/0.1293, allocations: 29.7 kB / 473.6 MB, free: 9.844 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.78e-05/0.1293, allocations: 143.9 kB / 473.7 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.498e-05/0.1294, allocations: 15.75 kB / 473.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.414e-05/0.1294, allocations: 25.66 kB / 473.7 MB, free: 9.652 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001411/0.1296, allocations: 322.8 kB / 474.1 MB, free: 9.328 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.856e-05/0.1296, allocations: 8 kB / 474.1 MB, free: 9.32 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.469e-05/0.1296, allocations: 15.98 kB / 474.1 MB, free: 9.305 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.76e-05/0.1297, allocations: 29.22 kB / 474.1 MB, free: 9.273 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.1297, allocations: 4 kB / 474.1 MB, free: 9.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001147/0.1299, allocations: 61.62 kB / 474.2 MB, free: 9.203 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.333e-05/0.1299, allocations: 8 kB / 474.2 MB, free: 9.195 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.1299, allocations: 4 kB / 474.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.412e-05/0.1299, allocations: 0 / 474.2 MB, free: 9.191 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.364e-05/0.13, allocations: 11.98 kB / 474.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.821e-06/0.13, allocations: 0 / 474.2 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.514e-05/0.13, allocations: 3.906 kB / 474.2 MB, free: 9.176 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.698e-06/0.1301, allocations: 8 kB / 474.2 MB, free: 9.168 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.0001149/0.1302, allocations: 133.8 kB / 474.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.515e-05/0.1302, allocations: 4 kB / 474.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.142e-05/0.1302, allocations: 11.97 kB / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.605e-06/0.1302, allocations: 0 / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.628e-06/0.1303, allocations: 0 / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.146e-06/0.1303, allocations: 0 / 474.4 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004017/0.1307, allocations: 370.4 kB / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.1307, allocations: 0 / 474.7 MB, free: 8.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.217e-05/0.1307, allocations: 8 kB / 474.7 MB, free: 8.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.1307, allocations: 7.938 kB / 474.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.003e-05/0.1308, allocations: 7.984 kB / 474.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.1308, allocations: 0 / 474.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.068e-06/0.1308, allocations: 3.938 kB / 474.8 MB, free: 8.57 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001753/0.131, allocations: 163.4 kB / 474.9 MB, free: 8.395 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.322e-05/0.131, allocations: 77.11 kB / 475 MB, free: 8.301 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.589e-05/0.131, allocations: 4.172 kB / 475 MB, free: 8.297 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.47e-05/0.1311, allocations: 8 kB / 475 MB, free: 8.289 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.692e-05/0.1311, allocations: 7.938 kB / 475 MB, free: 8.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.348e-06/0.1312, allocations: 4 kB / 475 MB, free: 8.277 MB / 350.1 MB Notification: Performance of sorting global known variables: time 5.121e-05/0.1312, allocations: 87.27 kB / 475.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1312, allocations: 0 / 475.1 MB, free: 8.191 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002402/0.1315, allocations: 31.69 kB / 475.1 MB, free: 8.16 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.0005673/0.132, allocations: 0.7123 MB / 475.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001664/0.1322, allocations: 36.03 kB / 475.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1322, allocations: 0 / 475.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.87e-05/0.1323, allocations: 15.94 kB / 475.9 MB, free: 7.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000383/0.1327, allocations: 19.86 kB / 475.9 MB, free: 7.348 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001483/0.1342, allocations: 1.45 MB / 477.4 MB, free: 5.82 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003269/0.1345, allocations: 0.7392 MB / 478.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.078e-05/0.1346, allocations: 7.984 kB / 478.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.234e-05/0.1346, allocations: 43.42 kB / 478.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1346, allocations: 0 / 478.1 MB, free: 5.004 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02036/0.155, allocations: 1.945 MB / 480.1 MB, free: 3.105 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.687/7.842, allocations: 16.73 kB / 480.1 MB, free: 3.098 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 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.mat","/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