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.001804/0.001804, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.002532/0.002532, allocations: 216.5 kB / 23.75 MB, free: 4.668 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.422/1.422, allocations: 230.6 MB / 257.5 MB, free: 8.027 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.2286/0.2286, allocations: 46.94 MB / 360.9 MB, free: 4.25 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.002124/0.002124, allocations: 67.91 kB / 0.4962 GB, free: 7.879 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3311/0.3332, allocations: 66.03 MB / 0.5606 GB, free: 4.438 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002888/0.3361, allocations: 1.57 MB / 0.5622 GB, free: 2.855 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002533/0.3364, allocations: 63.75 kB / 0.5622 GB, free: 2.793 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.541e-05/0.3364, allocations: 7.938 kB / 0.5622 GB, free: 2.785 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001431/0.3366, allocations: 19.84 kB / 0.5623 GB, free: 2.766 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.223e-05/0.3366, allocations: 3.938 kB / 0.5623 GB, free: 2.762 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001354/0.3367, allocations: 27.97 kB / 0.5623 GB, free: 2.734 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001133/0.3368, allocations: 71.77 kB / 0.5624 GB, free: 2.664 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002663/0.3371, allocations: 93.42 kB / 0.5625 GB, free: 2.566 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.745e-05/0.3372, allocations: 35.92 kB / 0.5625 GB, free: 2.531 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.541e-05/0.3372, allocations: 43.83 kB / 0.5625 GB, free: 2.488 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.555e-05/0.3373, allocations: 8 kB / 0.5625 GB, free: 2.48 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.733e-05/0.3373, allocations: 8 kB / 0.5625 GB, free: 2.473 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.673e-05/0.3374, allocations: 67.81 kB / 0.5626 GB, free: 2.406 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.259e-05/0.3374, allocations: 75.59 kB / 0.5627 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001792/0.3376, allocations: 143.3 kB / 0.5628 GB, free: 2.191 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.621e-06/0.3376, allocations: 4 kB / 0.5628 GB, free: 2.188 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3376, allocations: 0 / 0.5628 GB, free: 2.188 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.798e-06/0.3376, allocations: 0 / 0.5628 GB, free: 2.188 MB / 398.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.0004831/0.3381, allocations: 370 kB / 0.5632 GB, free: 1.797 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.461e-05/0.3382, allocations: 12.03 kB / 0.5632 GB, free: 1.785 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.064e-05/0.3382, allocations: 67.11 kB / 0.5632 GB, free: 1.707 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.3383, allocations: 20.84 kB / 0.5633 GB, free: 1.688 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002309/0.3385, allocations: 162.3 kB / 0.5634 GB, free: 1.504 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.3385, allocations: 12.81 kB / 0.5634 GB, free: 1.492 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.091e-05/0.3386, allocations: 20.38 kB / 0.5635 GB, free: 1.473 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003574/0.3389, allocations: 211.5 kB / 0.5637 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.998e-06/0.3389, allocations: 0 / 0.5637 GB, free: 1.262 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.963e-05/0.3389, allocations: 8 kB / 0.5637 GB, free: 1.254 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.815e-06/0.339, allocations: 4 kB / 0.5637 GB, free: 1.25 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002368/0.3392, allocations: 129.7 kB / 0.5638 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006909/0.3399, allocations: 486.9 kB / 0.5643 GB, free: 0.6055 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.475e-05/0.34, allocations: 38.5 kB / 0.5643 GB, free: 0.5586 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.533e-05/0.34, allocations: 28.97 kB / 0.5643 GB, free: 0.5273 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.3401, allocations: 11.97 kB / 0.5643 GB, free: 0.5156 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.046e-05/0.3401, allocations: 38.5 kB / 0.5644 GB, free: 480 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.032e-06/0.3401, allocations: 3.938 kB / 0.5644 GB, free: 476 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002347/0.3403, allocations: 73.62 kB / 0.5644 GB, free: 396 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.143e-05/0.3404, allocations: 55.41 kB / 0.5645 GB, free: 328 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000104/0.3405, allocations: 106.1 kB / 0.5646 GB, free: 212 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.857e-05/0.3405, allocations: 29.7 kB / 0.5646 GB, free: 176 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.3406, allocations: 148.1 kB / 0.5648 GB, free: 24 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.742e-05/0.3406, allocations: 7.906 kB / 0.5648 GB, free: 16 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.317e-05/0.3407, allocations: 21.7 kB / 0.5648 GB, free: 15.99 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.000153/0.3409, allocations: 318.8 kB / 0.5651 GB, free: 15.67 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.556e-05/0.3409, allocations: 11.98 kB / 0.5651 GB, free: 15.66 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.437e-05/0.3409, allocations: 12 kB / 0.5651 GB, free: 15.64 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.387e-05/0.341, allocations: 37.16 kB / 0.5652 GB, free: 15.61 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.341, allocations: 4 kB / 0.5652 GB, free: 15.6 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001329/0.3412, allocations: 69.62 kB / 0.5652 GB, free: 15.53 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.3412, allocations: 4 kB / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.958e-06/0.3412, allocations: 0 / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.255e-05/0.3412, allocations: 0 / 0.5652 GB, free: 15.52 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.904e-05/0.3413, allocations: 11.98 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.113e-06/0.3413, allocations: 4.062 kB / 0.5652 GB, free: 15.51 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.923e-05/0.3413, allocations: 7.938 kB / 0.5653 GB, free: 15.5 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.5e-06/0.3413, allocations: 0 / 0.5653 GB, free: 15.5 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.000119/0.3414, allocations: 149.6 kB / 0.5654 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.493e-05/0.3415, allocations: 3.984 kB / 0.5654 GB, free: 15.34 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.366e-05/0.3415, allocations: 8.062 kB / 0.5654 GB, free: 15.33 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.437e-06/0.3415, allocations: 4 kB / 0.5654 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.417e-06/0.3415, allocations: 0 / 0.5654 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.3415, allocations: 0 / 0.5654 GB, free: 15.32 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000406/0.3419, allocations: 345.5 kB / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-06/0.3419, allocations: 0 / 0.5657 GB, free: 14.94 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.617e-05/0.3419, allocations: 15.94 kB / 0.5658 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.532e-06/0.3419, allocations: 0 / 0.5658 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.714e-06/0.342, allocations: 3.984 kB / 0.5658 GB, free: 14.92 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.155e-06/0.342, allocations: 4 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.736e-06/0.342, allocations: 3.938 kB / 0.5658 GB, free: 14.91 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000173/0.3421, allocations: 151.7 kB / 0.5659 GB, free: 14.75 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.026e-05/0.3421, allocations: 8.016 kB / 0.5659 GB, free: 14.74 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.593e-05/0.3422, allocations: 11.92 kB / 0.5659 GB, free: 14.73 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.376e-05/0.3422, allocations: 8 kB / 0.5659 GB, free: 14.72 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.818e-05/0.3422, allocations: 7.875 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.725e-06/0.3422, allocations: 0 / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of sorting global known variables: time 6.309e-05/0.3423, allocations: 91.27 kB / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3423, allocations: 0 / 0.566 GB, free: 14.62 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.3425, allocations: 31.78 kB / 0.5661 GB, free: 14.59 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 (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.0005718/0.3431, allocations: 0.7046 MB / 0.5668 GB, free: 13.86 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0001407/0.3432, allocations: 32.05 kB / 0.5668 GB, free: 13.83 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.907e-06/0.3432, allocations: 3.938 kB / 0.5668 GB, free: 13.82 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.193e-05/0.3433, allocations: 15.98 kB / 0.5668 GB, free: 13.81 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000303/0.3436, allocations: 14.75 kB / 0.5668 GB, free: 13.8 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0016/0.3452, allocations: 1.446 MB / 0.5682 GB, free: 12.27 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004013/0.3456, allocations: 0.7314 MB / 0.5689 GB, free: 11.51 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.793e-05/0.3456, allocations: 7.781 kB / 0.5689 GB, free: 11.5 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.842e-05/0.3457, allocations: 47.41 kB / 0.569 GB, free: 11.46 MB / 414.1 MB Notification: Performance of SimCode: time 3.1e-07/0.3457, allocations: 0 / 0.569 GB, free: 11.46 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02663/0.3723, allocations: 2.079 MB / 0.571 GB, free: 9.512 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/11.15, allocations: 9.797 kB / 0.571 GB, free: 9.508 MB / 414.1 MB " [Timeout remaining time 649] (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: 14.178433739114553]