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.00173/0.00173, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002134/0.002134, allocations: 214.2 kB / 23.72 MB, free: 4.531 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.508/1.508, allocations: 230.6 MB / 257.5 MB, free: 7.996 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.2479/0.2479, allocations: 46.94 MB / 360.9 MB, free: 4.082 MB / 286.1 MB " [Timeout remaining time 179] 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.002025/0.002025, allocations: 71.89 kB / 0.4961 GB, free: 7.762 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4048/0.4068, allocations: 66.04 MB / 0.5606 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002952/0.4098, allocations: 1.541 MB / 0.5621 GB, free: 2.703 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002523/0.41, allocations: 55.77 kB / 0.5621 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.73e-05/0.4101, allocations: 0 / 0.5621 GB, free: 2.648 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001552/0.4102, allocations: 23.8 kB / 0.5622 GB, free: 2.625 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.642e-05/0.4103, allocations: 7.922 kB / 0.5622 GB, free: 2.617 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001402/0.4104, allocations: 27.92 kB / 0.5622 GB, free: 2.59 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.4105, allocations: 79.8 kB / 0.5623 GB, free: 2.512 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002572/0.4108, allocations: 89.44 kB / 0.5624 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.408e-05/0.4108, allocations: 35.86 kB / 0.5624 GB, free: 2.383 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.225e-05/0.4109, allocations: 51.81 kB / 0.5624 GB, free: 2.332 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.618e-05/0.411, allocations: 8 kB / 0.5625 GB, free: 2.324 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.833e-05/0.411, allocations: 8 kB / 0.5625 GB, free: 2.316 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.552e-05/0.4111, allocations: 63.83 kB / 0.5625 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 6.871e-05/0.4111, allocations: 47.73 kB / 0.5626 GB, free: 2.207 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000202/0.4113, allocations: 155.3 kB / 0.5627 GB, free: 2.055 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.4113, allocations: 0 / 0.5627 GB, free: 2.055 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.383e-06/0.4113, allocations: 4 kB / 0.5627 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.348e-06/0.4113, allocations: 0 / 0.5627 GB, free: 2.051 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.0005318/0.4119, allocations: 370 kB / 0.5631 GB, free: 1.66 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.4119, allocations: 11.97 kB / 0.5631 GB, free: 1.648 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001034/0.412, allocations: 67.12 kB / 0.5631 GB, free: 1.57 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.192e-05/0.4121, allocations: 20.83 kB / 0.5632 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002441/0.4123, allocations: 154.3 kB / 0.5633 GB, free: 1.375 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.497e-05/0.4123, allocations: 16.81 kB / 0.5633 GB, free: 1.359 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.504e-05/0.4124, allocations: 24.38 kB / 0.5634 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003739/0.4127, allocations: 211.5 kB / 0.5636 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.025e-05/0.4127, allocations: 0 / 0.5636 GB, free: 1.125 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.109e-05/0.4128, allocations: 12 kB / 0.5636 GB, free: 1.113 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.514e-06/0.4128, allocations: 4 kB / 0.5636 GB, free: 1.109 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002427/0.413, allocations: 133.6 kB / 0.5637 GB, free: 0.9805 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006406/0.4137, allocations: 450.9 kB / 0.5641 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001002/0.4138, allocations: 50.5 kB / 0.5642 GB, free: 448 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.498e-05/0.4138, allocations: 24.97 kB / 0.5642 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.478e-05/0.4138, allocations: 4 kB / 0.5642 GB, free: 416 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.436e-05/0.4139, allocations: 30.56 kB / 0.5642 GB, free: 376 kB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.202e-06/0.4139, allocations: 0 / 0.5642 GB, free: 376 kB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002481/0.4141, allocations: 81.56 kB / 0.5643 GB, free: 288 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.978e-05/0.4142, allocations: 51.41 kB / 0.5644 GB, free: 224 kB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.959e-05/0.4142, allocations: 109.8 kB / 0.5645 GB, free: 104 kB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.803e-05/0.4143, allocations: 25.7 kB / 0.5645 GB, free: 72 kB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.907e-05/0.4144, allocations: 148.1 kB / 0.5646 GB, free: 15.92 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.224e-05/0.4144, allocations: 15.89 kB / 0.5646 GB, free: 15.91 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.357e-05/0.4144, allocations: 13.72 kB / 0.5647 GB, free: 15.89 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.4146, allocations: 318.8 kB / 0.565 GB, free: 15.57 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.032e-05/0.4146, allocations: 11.98 kB / 0.565 GB, free: 15.55 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.791e-05/0.4146, allocations: 15.98 kB / 0.565 GB, free: 15.54 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.194e-05/0.4147, allocations: 37.22 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.4147, allocations: 3.938 kB / 0.565 GB, free: 15.5 MB / 414.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001314/0.4149, allocations: 69.58 kB / 0.5651 GB, free: 15.42 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.4149, allocations: 8 kB / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.028e-06/0.4149, allocations: 0 / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.293e-05/0.4149, allocations: 0 / 0.5651 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.069e-05/0.415, allocations: 11.98 kB / 0.5651 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.415, allocations: 0 / 0.5651 GB, free: 15.4 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.816e-05/0.415, allocations: 7.938 kB / 0.5651 GB, free: 15.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.722e-06/0.415, allocations: 0 / 0.5651 GB, free: 15.39 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.0001198/0.4151, allocations: 141.8 kB / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.273e-05/0.4151, allocations: 0 / 0.5653 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.871e-05/0.4152, allocations: 16.05 kB / 0.5653 GB, free: 15.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.934e-06/0.4152, allocations: 4 kB / 0.5653 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.777e-06/0.4152, allocations: 0 / 0.5653 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.255e-06/0.4152, allocations: 0 / 0.5653 GB, free: 15.22 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004003/0.4156, allocations: 345.5 kB / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.4156, allocations: 0 / 0.5656 GB, free: 14.84 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.386e-05/0.4156, allocations: 11.94 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.714e-06/0.4156, allocations: 0 / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.753e-06/0.4156, allocations: 4 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.4156, allocations: 0 / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.346e-06/0.4156, allocations: 3.938 kB / 0.5656 GB, free: 14.82 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001783/0.4158, allocations: 171.6 kB / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.246e-05/0.4158, allocations: 3.953 kB / 0.5658 GB, free: 14.63 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.461e-05/0.4158, allocations: 4 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.487e-05/0.4159, allocations: 3.984 kB / 0.5658 GB, free: 14.62 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.784e-05/0.4159, allocations: 7.938 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.863e-06/0.4159, allocations: 4 kB / 0.5658 GB, free: 14.61 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.231e-05/0.416, allocations: 87.56 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of sort global known variables: time 1e-07/0.416, allocations: 4 kB / 0.5659 GB, free: 14.52 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002328/0.4162, allocations: 31.78 kB / 0.5659 GB, free: 14.49 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.0005496/0.4168, allocations: 0.7046 MB / 0.5666 GB, free: 13.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.00014/0.4169, allocations: 32.03 kB / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.4169, allocations: 0 / 0.5666 GB, free: 13.73 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 4.493e-05/0.4169, allocations: 19.94 kB / 0.5667 GB, free: 13.71 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003255/0.4173, allocations: 11.92 kB / 0.5667 GB, free: 13.7 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001583/0.4189, allocations: 1.454 MB / 0.5681 GB, free: 12.16 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001354/0.419, allocations: 119.2 kB / 0.5682 GB, free: 12.03 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.719e-05/0.419, allocations: 7.781 kB / 0.5682 GB, free: 12.02 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.118e-05/0.4191, allocations: 51.41 kB / 0.5683 GB, free: 11.97 MB / 414.1 MB Notification: Performance of SimCode: time 4.21e-07/0.4191, allocations: 0 / 0.5683 GB, free: 11.97 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03158/0.4507, allocations: 2.553 MB / 0.5708 GB, free: 9.559 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.82/11.27, allocations: 17.31 kB / 0.5708 GB, free: 9.547 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.548995930003002]