Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001401/0.001401, allocations: 119.4 kB / 17.79 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001418/0.001418, allocations: 216.2 kB / 20.75 MB, free: 2.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.565/1.565, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo): time 0.2455/0.2455, allocations: 46.93 MB / 357.1 MB, free: 10.31 MB / 286.1 MB " [Timeout remaining time 180] Using package ModelicaTest with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.1.0+maint.om/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00268/0.00268, allocations: 63.89 kB / 0.4909 GB, free: 7.977 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1487/0.1514, allocations: 65.99 MB / 0.5554 GB, free: 5.859 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002835/0.1543, allocations: 1.574 MB / 0.5569 GB, free: 4.273 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002484/0.1545, allocations: 63.75 kB / 0.557 GB, free: 4.211 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.016e-05/0.1546, allocations: 7.938 kB / 0.557 GB, free: 4.203 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.1547, allocations: 19.84 kB / 0.557 GB, free: 4.184 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.838e-05/0.1547, allocations: 7.938 kB / 0.557 GB, free: 4.176 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000149/0.1549, allocations: 15.98 kB / 0.557 GB, free: 4.16 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001243/0.155, allocations: 75.81 kB / 0.5571 GB, free: 4.086 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002482/0.1552, allocations: 113.6 kB / 0.5572 GB, free: 3.969 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.8e-05/0.1553, allocations: 35.92 kB / 0.5572 GB, free: 3.934 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.859e-05/0.1554, allocations: 39.84 kB / 0.5573 GB, free: 3.895 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.931e-05/0.1554, allocations: 8 kB / 0.5573 GB, free: 3.887 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.93e-05/0.1554, allocations: 8 kB / 0.5573 GB, free: 3.879 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9e-05/0.1555, allocations: 71.8 kB / 0.5574 GB, free: 3.809 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 9.634e-05/0.1556, allocations: 67.61 kB / 0.5574 GB, free: 3.742 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002085/0.1558, allocations: 151.3 kB / 0.5576 GB, free: 3.594 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.927e-06/0.1558, allocations: 0 / 0.5576 GB, free: 3.594 MB / 414.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.1558, allocations: 0 / 0.5576 GB, free: 3.594 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.27e-06/0.1558, allocations: 4 kB / 0.5576 GB, free: 3.59 MB / 414.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.0006176/0.1564, allocations: 451.1 kB / 0.558 GB, free: 3.102 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.344e-05/0.1565, allocations: 8.031 kB / 0.558 GB, free: 3.094 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001036/0.1566, allocations: 67.06 kB / 0.5581 GB, free: 3.016 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.755e-05/0.1566, allocations: 20.83 kB / 0.5581 GB, free: 2.996 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.1569, allocations: 220.1 kB / 0.5583 GB, free: 2.742 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.732e-05/0.1569, allocations: 12.81 kB / 0.5583 GB, free: 2.73 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.542e-05/0.157, allocations: 20.38 kB / 0.5583 GB, free: 2.711 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000384/0.1573, allocations: 211.6 kB / 0.5585 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.101e-05/0.1574, allocations: 0 / 0.5585 GB, free: 2.496 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.296e-05/0.1574, allocations: 12 kB / 0.5585 GB, free: 2.484 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.125e-06/0.1574, allocations: 4 kB / 0.5585 GB, free: 2.48 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002475/0.1576, allocations: 133.6 kB / 0.5587 GB, free: 2.352 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007296/0.1584, allocations: 0.5119 MB / 0.5592 GB, free: 1.789 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001051/0.1585, allocations: 34.56 kB / 0.5592 GB, free: 1.746 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.737e-05/0.1585, allocations: 28.97 kB / 0.5592 GB, free: 1.715 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.999e-06/0.1585, allocations: 3.938 kB / 0.5592 GB, free: 1.711 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.11e-05/0.1586, allocations: 34.56 kB / 0.5593 GB, free: 1.668 MB / 414.1 MB Notification: Performance of pre-optimization done (n=5): time 1.102e-06/0.1586, allocations: 0 / 0.5593 GB, free: 1.668 MB / 414.1 MB Notification: Performance of matching and sorting (n=5): time 0.000281/0.1589, allocations: 85.5 kB / 0.5594 GB, free: 1.578 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.808e-05/0.1589, allocations: 55.41 kB / 0.5594 GB, free: 1.512 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.415e-05/0.159, allocations: 109.8 kB / 0.5595 GB, free: 1.395 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.952e-05/0.159, allocations: 25.7 kB / 0.5595 GB, free: 1.363 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001056/0.1591, allocations: 152.1 kB / 0.5597 GB, free: 1.211 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.023e-05/0.1592, allocations: 11.89 kB / 0.5597 GB, free: 1.199 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.95e-05/0.1592, allocations: 17.72 kB / 0.5597 GB, free: 1.176 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001783/0.1594, allocations: 326.8 kB / 0.56 GB, free: 0.8477 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.412e-05/0.1594, allocations: 8 kB / 0.56 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.733e-05/0.1594, allocations: 11.98 kB / 0.56 GB, free: 0.8281 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.833e-05/0.1595, allocations: 33.22 kB / 0.5601 GB, free: 0.793 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.375e-06/0.1595, allocations: 0 / 0.5601 GB, free: 0.793 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001362/0.1597, allocations: 73.58 kB / 0.5601 GB, free: 0.7148 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.1597, allocations: 4 kB / 0.5601 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.089e-06/0.1597, allocations: 0 / 0.5601 GB, free: 0.7109 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2e-05/0.1597, allocations: 4 kB / 0.5602 GB, free: 0.707 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.653e-05/0.1598, allocations: 11.98 kB / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.1598, allocations: 0 / 0.5602 GB, free: 0.6953 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.876e-05/0.1598, allocations: 4 kB / 0.5602 GB, free: 0.6914 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.131e-06/0.1598, allocations: 0 / 0.5602 GB, free: 0.6914 MB / 414.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.000138/0.16, allocations: 141.8 kB / 0.5603 GB, free: 0.543 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.454e-05/0.16, allocations: 3.953 kB / 0.5603 GB, free: 0.5391 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.487e-05/0.16, allocations: 7.969 kB / 0.5603 GB, free: 0.5312 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.16, allocations: 8 kB / 0.5603 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.16, allocations: 0 / 0.5603 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.595e-06/0.16, allocations: 0 / 0.5603 GB, free: 0.5234 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000446/0.1605, allocations: 378.4 kB / 0.5607 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.223e-06/0.1605, allocations: 0 / 0.5607 GB, free: 100 kB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.727e-05/0.1605, allocations: 11.98 kB / 0.5607 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.844e-06/0.1605, allocations: 0 / 0.5607 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.532e-06/0.1605, allocations: 0 / 0.5607 GB, free: 88 kB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.427e-06/0.1605, allocations: 4 kB / 0.5607 GB, free: 84 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/0.1605, allocations: 3.938 kB / 0.5607 GB, free: 80 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002014/0.1608, allocations: 163.4 kB / 0.5609 GB, free: 15.9 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.875e-05/0.1608, allocations: 89.05 kB / 0.5609 GB, free: 15.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.663e-05/0.1608, allocations: 4 kB / 0.5609 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.897e-05/0.1609, allocations: 4 kB / 0.5609 GB, free: 15.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.98e-05/0.1609, allocations: 8.109 kB / 0.561 GB, free: 15.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.37e-06/0.1609, allocations: 4 kB / 0.561 GB, free: 15.78 MB / 430.1 MB Notification: Performance of sorting global known variables: time 8.544e-05/0.161, allocations: 91.28 kB / 0.561 GB, free: 15.69 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.161, allocations: 0 / 0.561 GB, free: 15.69 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.0002319/0.1612, allocations: 27.84 kB / 0.5611 GB, free: 15.66 MB / 430.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.0005682/0.1618, allocations: 0.7084 MB / 0.5618 GB, free: 14.93 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.000143/0.1619, allocations: 32.05 kB / 0.5618 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 2.385e-06/0.1619, allocations: 0 / 0.5618 GB, free: 14.89 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 5.114e-05/0.162, allocations: 23.92 kB / 0.5618 GB, free: 14.87 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003118/0.1623, allocations: 11.94 kB / 0.5618 GB, free: 14.86 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001634/0.1639, allocations: 1.446 MB / 0.5632 GB, free: 13.34 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004231/0.1644, allocations: 0.7314 MB / 0.564 GB, free: 12.58 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 3.519e-05/0.1644, allocations: 11.77 kB / 0.564 GB, free: 12.57 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.506e-05/0.1645, allocations: 47.42 kB / 0.564 GB, free: 12.52 MB / 430.1 MB Notification: Performance of SimCode: time 2.8e-07/0.1645, allocations: 0 / 0.564 GB, free: 12.52 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02376/0.1882, allocations: 1.945 MB / 0.5659 GB, free: 10.64 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.173/8.362, allocations: 13.83 kB / 0.5659 GB, free: 10.63 MB / 430.1 MB " [Timeout remaining time 652] (rm -f ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat --tempDir=temp_ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux_fmu --startTime=0 --stopTime=2 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.1.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 11.598047611769289]