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.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.00171/0.00171, allocations: 112.2 kB / 18.49 MB, free: 4.539 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.002198/0.002198, allocations: 219 kB / 21.46 MB, free: 1.586 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.613/1.613, allocations: 230.6 MB / 254.8 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2548/0.2548, allocations: 44.91 MB / 355.8 MB, free: 12.32 MB / 286.1 MB " [Timeout remaining time 180] 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.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_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002538/0.002538, allocations: 63.91 kB / 0.4885 GB, free: 11.68 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1542/0.1568, allocations: 65.43 MB / 0.5524 GB, free: 10.13 MB / 414.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002918/0.1597, allocations: 1.563 MB / 0.554 GB, free: 8.555 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002501/0.1599, allocations: 67.75 kB / 0.554 GB, free: 8.488 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.901e-05/0.16, allocations: 3.938 kB / 0.554 GB, free: 8.484 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001504/0.1602, allocations: 19.86 kB / 0.554 GB, free: 8.465 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 2.178e-05/0.1602, allocations: 3.938 kB / 0.5541 GB, free: 8.461 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000155/0.1603, allocations: 19.97 kB / 0.5541 GB, free: 8.441 MB / 414.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.1605, allocations: 71.81 kB / 0.5541 GB, free: 8.371 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002804/0.1607, allocations: 113.9 kB / 0.5542 GB, free: 8.254 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.131e-05/0.1608, allocations: 39.84 kB / 0.5543 GB, free: 8.215 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.587e-05/0.1609, allocations: 39.84 kB / 0.5543 GB, free: 8.176 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.1609, allocations: 8 kB / 0.5543 GB, free: 8.168 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.976e-05/0.1609, allocations: 8 kB / 0.5543 GB, free: 8.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 9.648e-05/0.161, allocations: 75.81 kB / 0.5544 GB, free: 8.086 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 8.001e-05/0.1611, allocations: 63.61 kB / 0.5545 GB, free: 8.023 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000207/0.1613, allocations: 151.3 kB / 0.5546 GB, free: 7.875 MB / 414.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.239e-06/0.1613, allocations: 4 kB / 0.5546 GB, free: 7.871 MB / 414.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.1613, allocations: 0 / 0.5546 GB, free: 7.871 MB / 414.1 MB Notification: Performance of Transformations before backend: time 5.43e-06/0.1613, allocations: 0 / 0.5546 GB, free: 7.871 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.000565/0.1619, allocations: 447.1 kB / 0.555 GB, free: 7.387 MB / 414.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.1619, allocations: 8.031 kB / 0.5551 GB, free: 7.379 MB / 414.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.155e-05/0.162, allocations: 16.61 kB / 0.5551 GB, free: 7.359 MB / 414.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.833e-05/0.1621, allocations: 71.23 kB / 0.5551 GB, free: 7.281 MB / 414.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.1621, allocations: 20.8 kB / 0.5552 GB, free: 7.262 MB / 414.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002353/0.1623, allocations: 220 kB / 0.5554 GB, free: 7.008 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.93e-05/0.1624, allocations: 20.94 kB / 0.5554 GB, free: 6.988 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.737e-05/0.1624, allocations: 20.38 kB / 0.5554 GB, free: 6.969 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000395/0.1628, allocations: 225 kB / 0.5556 GB, free: 6.742 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.799e-06/0.1628, allocations: 4 kB / 0.5556 GB, free: 6.738 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.037e-05/0.1628, allocations: 15.94 kB / 0.5556 GB, free: 6.723 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.648e-06/0.1628, allocations: 8 kB / 0.5556 GB, free: 6.715 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002868/0.1631, allocations: 138.1 kB / 0.5558 GB, free: 6.578 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008018/0.1639, allocations: 0.5804 MB / 0.5563 GB, free: 5.945 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001346/0.1641, allocations: 54.55 kB / 0.5564 GB, free: 5.883 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.551e-05/0.1641, allocations: 36.84 kB / 0.5564 GB, free: 5.844 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.389e-05/0.1642, allocations: 3.938 kB / 0.5564 GB, free: 5.84 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1642, allocations: 30.56 kB / 0.5565 GB, free: 5.801 MB / 414.1 MB Notification: Performance of pre-optimization done (n=7): time 1.082e-06/0.1642, allocations: 0 / 0.5565 GB, free: 5.801 MB / 414.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005908/0.1648, allocations: 181.1 kB / 0.5566 GB, free: 5.617 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.317e-05/0.1648, allocations: 55.41 kB / 0.5567 GB, free: 5.551 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.447e-05/0.1649, allocations: 109.8 kB / 0.5568 GB, free: 5.434 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 1.522e-05/0.1649, allocations: 25.7 kB / 0.5568 GB, free: 5.402 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.902e-05/0.165, allocations: 156.1 kB / 0.557 GB, free: 5.246 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.092e-05/0.165, allocations: 31.89 kB / 0.557 GB, free: 5.215 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.852e-05/0.1651, allocations: 21.7 kB / 0.557 GB, free: 5.188 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1652, allocations: 314.8 kB / 0.5573 GB, free: 4.871 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.349e-05/0.1653, allocations: 19.98 kB / 0.5573 GB, free: 4.852 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.436e-05/0.1654, allocations: 37.69 kB / 0.5574 GB, free: 4.809 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001461/0.1655, allocations: 57.69 kB / 0.5574 GB, free: 4.746 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.42e-07/0.1655, allocations: 0 / 0.5574 GB, free: 4.746 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0001978/0.1657, allocations: 93.55 kB / 0.5575 GB, free: 4.648 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.616e-05/0.1658, allocations: 4 kB / 0.5575 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.809e-06/0.1658, allocations: 0 / 0.5575 GB, free: 4.645 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.1658, allocations: 4 kB / 0.5575 GB, free: 4.641 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001018/0.1659, allocations: 23.92 kB / 0.5576 GB, free: 4.617 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.1659, allocations: 3.938 kB / 0.5576 GB, free: 4.613 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.132e-05/0.1659, allocations: 7.984 kB / 0.5576 GB, free: 4.605 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.741e-06/0.1659, allocations: 0 / 0.5576 GB, free: 4.605 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * 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 (8): * Single equations (assignments): 8 * 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.0001183/0.1661, allocations: 137.9 kB / 0.5577 GB, free: 4.461 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.816e-05/0.1661, allocations: 7.953 kB / 0.5577 GB, free: 4.453 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.573e-05/0.1661, allocations: 12.36 kB / 0.5577 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.1661, allocations: 0 / 0.5577 GB, free: 4.441 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.883e-06/0.1661, allocations: 3.938 kB / 0.5577 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.825e-06/0.1661, allocations: 0 / 0.5577 GB, free: 4.438 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005534/0.1667, allocations: 422.4 kB / 0.5581 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.633e-06/0.1667, allocations: 0 / 0.5581 GB, free: 3.969 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.988e-05/0.1667, allocations: 24.05 kB / 0.5581 GB, free: 3.945 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.702e-06/0.1668, allocations: 7.938 kB / 0.5582 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.863e-06/0.1668, allocations: 0 / 0.5582 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1668, allocations: 0 / 0.5582 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.51e-07/0.1668, allocations: 0 / 0.5582 GB, free: 3.938 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002406/0.167, allocations: 195.3 kB / 0.5583 GB, free: 3.73 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.576e-05/0.167, allocations: 81.05 kB / 0.5584 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.211e-05/0.1671, allocations: 0 / 0.5584 GB, free: 3.633 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.747e-05/0.1671, allocations: 7.984 kB / 0.5584 GB, free: 3.625 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.829e-05/0.1672, allocations: 11.94 kB / 0.5584 GB, free: 3.613 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.787e-06/0.1672, allocations: 0 / 0.5584 GB, free: 3.613 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.327e-05/0.1672, allocations: 92.44 kB / 0.5585 GB, free: 3.523 MB / 414.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1672, allocations: 0 / 0.5585 GB, free: 3.523 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002249/0.1674, allocations: 12 kB / 0.5585 GB, free: 3.512 MB / 414.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 (8): * Single equations (assignments): 8 * 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.0006812/0.1681, allocations: 0.7477 MB / 0.5593 GB, free: 2.738 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0002165/0.1683, allocations: 56 kB / 0.5593 GB, free: 2.684 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.1683, allocations: 8.062 kB / 0.5593 GB, free: 2.676 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.773e-05/0.1684, allocations: 27.92 kB / 0.5594 GB, free: 2.648 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003201/0.1687, allocations: 12 kB / 0.5594 GB, free: 2.637 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001799/0.1705, allocations: 1.539 MB / 0.5609 GB, free: 1.012 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004246/0.171, allocations: 0.7392 MB / 0.5616 GB, free: 252 kB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.607e-05/0.171, allocations: 8.422 kB / 0.5616 GB, free: 244 kB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.611e-05/0.1711, allocations: 51.42 kB / 0.5616 GB, free: 192 kB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1711, allocations: 0 / 0.5616 GB, free: 192 kB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01788/0.189, allocations: 2.226 MB / 0.5638 GB, free: 14.04 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.422/8.611, allocations: 2.109 kB / 0.5638 GB, free: 14.04 MB / 430.1 MB " [Timeout remaining time 651] (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 --stepSize=0.00039984 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_MuxDemux.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) [Timeout 52.5] 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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 12.137408506998327]