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.001303/0.001303, allocations: 107.5 kB / 21.22 MB, free: 0.6289 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.001485/0.001485, allocations: 212.3 kB / 24.51 MB, free: 3.914 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.516/1.516, allocations: 230.6 MB / 258.3 MB, free: 7.734 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.24/0.24, allocations: 44.93 MB / 359.6 MB, free: 6.031 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.002042/0.002042, allocations: 67.89 kB / 0.4938 GB, free: 10.52 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3476/0.3496, allocations: 65.47 MB / 0.5577 GB, free: 7.328 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003717/0.3534, allocations: 1.539 MB / 0.5592 GB, free: 5.961 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002866/0.3536, allocations: 55.77 kB / 0.5593 GB, free: 5.906 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.923e-05/0.3537, allocations: 3.938 kB / 0.5593 GB, free: 5.902 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000177/0.3539, allocations: 19.86 kB / 0.5593 GB, free: 5.883 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 3.095e-05/0.3539, allocations: 11.91 kB / 0.5593 GB, free: 5.871 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001745/0.3541, allocations: 23.98 kB / 0.5593 GB, free: 5.848 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001401/0.3542, allocations: 75.75 kB / 0.5594 GB, free: 5.773 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.3545, allocations: 97.38 kB / 0.5595 GB, free: 5.672 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.219e-05/0.3546, allocations: 39.84 kB / 0.5595 GB, free: 5.633 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.017e-05/0.3547, allocations: 47.83 kB / 0.5596 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.747e-05/0.3547, allocations: 8 kB / 0.5596 GB, free: 5.578 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.252e-05/0.3547, allocations: 8 kB / 0.5596 GB, free: 5.57 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.843e-05/0.3548, allocations: 63.83 kB / 0.5597 GB, free: 5.508 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.457e-05/0.3549, allocations: 51.73 kB / 0.5597 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002209/0.3552, allocations: 155.2 kB / 0.5599 GB, free: 5.305 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.3552, allocations: 0 / 0.5599 GB, free: 5.305 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.474e-06/0.3552, allocations: 0 / 0.5599 GB, free: 5.305 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.3552, allocations: 0 / 0.5599 GB, free: 5.305 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.0007291/0.3559, allocations: 378 kB / 0.5602 GB, free: 4.906 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.923e-05/0.356, allocations: 12.03 kB / 0.5602 GB, free: 4.895 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.603e-05/0.356, allocations: 4.625 kB / 0.5602 GB, free: 4.887 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.3561, allocations: 67.17 kB / 0.5603 GB, free: 4.812 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.307e-05/0.3562, allocations: 28.8 kB / 0.5603 GB, free: 4.785 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002711/0.3565, allocations: 154.3 kB / 0.5605 GB, free: 4.609 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.694e-05/0.3565, allocations: 16.88 kB / 0.5605 GB, free: 4.594 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.352e-05/0.3565, allocations: 32.31 kB / 0.5605 GB, free: 4.562 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004388/0.357, allocations: 228.2 kB / 0.5607 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.357, allocations: 0 / 0.5607 GB, free: 4.332 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.409e-05/0.357, allocations: 8 kB / 0.5607 GB, free: 4.324 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.357, allocations: 4 kB / 0.5607 GB, free: 4.32 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002826/0.3573, allocations: 145.9 kB / 0.5609 GB, free: 4.176 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008352/0.3582, allocations: 491.1 kB / 0.5614 GB, free: 3.656 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.3583, allocations: 54.55 kB / 0.5614 GB, free: 3.594 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.871e-05/0.3584, allocations: 32.83 kB / 0.5614 GB, free: 3.559 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.844e-05/0.3584, allocations: 7.938 kB / 0.5614 GB, free: 3.551 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.98e-05/0.3584, allocations: 34.56 kB / 0.5615 GB, free: 3.508 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.433e-06/0.3584, allocations: 0 / 0.5615 GB, free: 3.508 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005981/0.359, allocations: 173.3 kB / 0.5616 GB, free: 3.332 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.31e-05/0.3591, allocations: 55.34 kB / 0.5617 GB, free: 3.266 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001208/0.3592, allocations: 121.8 kB / 0.5618 GB, free: 3.137 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.119e-05/0.3592, allocations: 25.7 kB / 0.5618 GB, free: 3.105 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001206/0.3593, allocations: 148.3 kB / 0.562 GB, free: 2.953 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.799e-05/0.3594, allocations: 27.75 kB / 0.562 GB, free: 2.926 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.416e-05/0.3594, allocations: 17.72 kB / 0.562 GB, free: 2.902 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001811/0.3596, allocations: 318.8 kB / 0.5623 GB, free: 2.582 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.427e-05/0.3597, allocations: 15.98 kB / 0.5623 GB, free: 2.566 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.586e-05/0.3598, allocations: 41.7 kB / 0.5624 GB, free: 2.52 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000153/0.3599, allocations: 57.69 kB / 0.5624 GB, free: 2.457 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.12e-07/0.3599, allocations: 0 / 0.5624 GB, free: 2.457 MB / 398.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002212/0.3601, allocations: 97.48 kB / 0.5625 GB, free: 2.355 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.801e-05/0.3601, allocations: 4 kB / 0.5625 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.3602, allocations: 0 / 0.5625 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.643e-05/0.3602, allocations: 4 kB / 0.5625 GB, free: 2.348 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001173/0.3603, allocations: 19.92 kB / 0.5626 GB, free: 2.328 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.406e-06/0.3603, allocations: 7.969 kB / 0.5626 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.761e-05/0.3603, allocations: 4 kB / 0.5626 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.618e-06/0.3603, allocations: 4 kB / 0.5626 GB, free: 2.312 MB / 398.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.0001471/0.3605, allocations: 141.8 kB / 0.5627 GB, free: 2.164 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.651e-05/0.3605, allocations: 4 kB / 0.5627 GB, free: 2.16 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.005e-05/0.3605, allocations: 8.375 kB / 0.5627 GB, free: 2.152 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.009e-06/0.3606, allocations: 4 kB / 0.5627 GB, free: 2.148 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.769e-06/0.3606, allocations: 3.938 kB / 0.5627 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.567e-06/0.3606, allocations: 0 / 0.5627 GB, free: 2.145 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006193/0.3612, allocations: 398.4 kB / 0.5631 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.623e-06/0.3612, allocations: 0 / 0.5631 GB, free: 1.707 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.3613, allocations: 15.98 kB / 0.5631 GB, free: 1.691 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.45e-06/0.3613, allocations: 3.938 kB / 0.5631 GB, free: 1.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.34e-05/0.3613, allocations: 4 kB / 0.5631 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.954e-06/0.3613, allocations: 0 / 0.5631 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.82e-07/0.3613, allocations: 0 / 0.5631 GB, free: 1.684 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002756/0.3616, allocations: 183.4 kB / 0.5633 GB, free: 1.488 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.757e-05/0.3616, allocations: 15.83 kB / 0.5633 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.934e-05/0.3616, allocations: 8.062 kB / 0.5633 GB, free: 1.465 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.629e-05/0.3617, allocations: 11.98 kB / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.506e-05/0.3617, allocations: 0 / 0.5633 GB, free: 1.453 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.993e-06/0.3617, allocations: 4 kB / 0.5633 GB, free: 1.449 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.95e-05/0.3618, allocations: 91.41 kB / 0.5634 GB, free: 1.359 MB / 398.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3618, allocations: 0 / 0.5634 GB, free: 1.359 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002343/0.362, allocations: 20 kB / 0.5634 GB, free: 1.34 MB / 398.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.0006985/0.3627, allocations: 0.7397 MB / 0.5642 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.000188/0.3629, allocations: 52 kB / 0.5642 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.3629, allocations: 0 / 0.5642 GB, free: 0.5234 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 7.274e-05/0.363, allocations: 31.92 kB / 0.5642 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003414/0.3633, allocations: 11.94 kB / 0.5643 GB, free: 492 kB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002307/0.3656, allocations: 1.541 MB / 0.5658 GB, free: 14.86 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001929/0.3658, allocations: 126.9 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 5.961e-05/0.3659, allocations: 8.422 kB / 0.5659 GB, free: 14.71 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001143/0.366, allocations: 47.42 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of SimCode: time 3.51e-07/0.366, allocations: 4.062 kB / 0.5659 GB, free: 14.66 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02661/0.3926, allocations: 2.442 MB / 0.5683 GB, free: 12.36 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.48/11.87, allocations: 6.812 kB / 0.5683 GB, free: 12.36 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.112444534082897]