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.001346/0.001346, allocations: 105.1 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.001742/0.001742, allocations: 218.7 kB / 24.52 MB, free: 3.91 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.471/1.471, allocations: 230.6 MB / 258.3 MB, free: 7.77 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.2543/0.2543, allocations: 46.96 MB / 361.7 MB, free: 4.047 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.MuxDemux,fileNamePrefix="ModelicaTest_4_1_0_ModelicaTest_Blocks_MuxDemux",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002739/0.002739, allocations: 67.89 kB / 0.4969 GB, free: 7.734 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3642/0.367, allocations: 66.03 MB / 0.5613 GB, free: 4.254 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003135/0.3701, allocations: 1.542 MB / 0.5628 GB, free: 2.699 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002547/0.3704, allocations: 63.75 kB / 0.5629 GB, free: 2.637 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.749e-05/0.3704, allocations: 4 kB / 0.5629 GB, free: 2.633 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001501/0.3706, allocations: 19.78 kB / 0.5629 GB, free: 2.613 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.665e-05/0.3706, allocations: 3.938 kB / 0.5629 GB, free: 2.609 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001584/0.3708, allocations: 31.97 kB / 0.563 GB, free: 2.578 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001219/0.3709, allocations: 63.83 kB / 0.563 GB, free: 2.516 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002687/0.3712, allocations: 93.42 kB / 0.5631 GB, free: 2.418 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.265e-05/0.3712, allocations: 43.91 kB / 0.5632 GB, free: 2.375 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.619e-05/0.3713, allocations: 39.84 kB / 0.5632 GB, free: 2.336 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.531e-05/0.3713, allocations: 8 kB / 0.5632 GB, free: 2.328 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.277e-05/0.3713, allocations: 8 kB / 0.5632 GB, free: 2.32 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.814e-05/0.3714, allocations: 67.81 kB / 0.5633 GB, free: 2.254 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 7.499e-05/0.3715, allocations: 55.67 kB / 0.5633 GB, free: 2.199 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002156/0.3717, allocations: 151.3 kB / 0.5635 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.3717, allocations: 0 / 0.5635 GB, free: 2.051 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.542e-06/0.3717, allocations: 0 / 0.5635 GB, free: 2.051 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.26e-05/0.3717, allocations: 4 kB / 0.5635 GB, free: 2.047 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.0005276/0.3723, allocations: 370.1 kB / 0.5638 GB, free: 1.656 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.3723, allocations: 12.03 kB / 0.5638 GB, free: 1.645 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.424e-05/0.3723, allocations: 12.55 kB / 0.5639 GB, free: 1.629 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.764e-05/0.3724, allocations: 71.17 kB / 0.5639 GB, free: 1.551 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.443e-05/0.3725, allocations: 24.8 kB / 0.5639 GB, free: 1.527 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002248/0.3727, allocations: 154.3 kB / 0.5641 GB, free: 1.352 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.058e-05/0.3727, allocations: 16.88 kB / 0.5641 GB, free: 1.336 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.816e-05/0.3728, allocations: 28.33 kB / 0.5641 GB, free: 1.309 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004024/0.3732, allocations: 232.1 kB / 0.5644 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.331e-05/0.3732, allocations: 0 / 0.5644 GB, free: 1.074 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.432e-05/0.3732, allocations: 12 kB / 0.5644 GB, free: 1.062 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.3732, allocations: 7.938 kB / 0.5644 GB, free: 1.055 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002823/0.3735, allocations: 141.9 kB / 0.5645 GB, free: 0.9141 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000736/0.3742, allocations: 499.1 kB / 0.565 GB, free: 396 kB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001224/0.3744, allocations: 54.55 kB / 0.565 GB, free: 332 kB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.322e-05/0.3744, allocations: 32.84 kB / 0.5651 GB, free: 296 kB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.3745, allocations: 4 kB / 0.5651 GB, free: 292 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.348e-05/0.3745, allocations: 30.56 kB / 0.5651 GB, free: 252 kB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 3.076e-06/0.3745, allocations: 3.984 kB / 0.5651 GB, free: 248 kB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0005697/0.3751, allocations: 173.2 kB / 0.5653 GB, free: 68 kB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.218e-05/0.3751, allocations: 55.41 kB / 0.5653 GB, free: 0 / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.645e-05/0.3752, allocations: 118 kB / 0.5654 GB, free: 15.87 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 2.175e-05/0.3752, allocations: 25.7 kB / 0.5655 GB, free: 15.84 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.534e-05/0.3753, allocations: 148.3 kB / 0.5656 GB, free: 15.69 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.882e-05/0.3753, allocations: 31.73 kB / 0.5656 GB, free: 15.66 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.162e-05/0.3754, allocations: 17.72 kB / 0.5657 GB, free: 15.63 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001495/0.3755, allocations: 314.8 kB / 0.566 GB, free: 15.32 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.796e-05/0.3756, allocations: 23.97 kB / 0.566 GB, free: 15.29 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.819e-05/0.3757, allocations: 37.64 kB / 0.566 GB, free: 15.25 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000136/0.3758, allocations: 61.69 kB / 0.5661 GB, free: 15.18 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.32e-07/0.3758, allocations: 0 / 0.5661 GB, free: 15.18 MB / 414.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002066/0.376, allocations: 89.56 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.476e-05/0.376, allocations: 4 kB / 0.5662 GB, free: 15.09 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.613e-06/0.376, allocations: 4 kB / 0.5662 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.624e-05/0.3761, allocations: 0 / 0.5662 GB, free: 15.08 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.3762, allocations: 15.98 kB / 0.5662 GB, free: 15.07 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.404e-06/0.3762, allocations: 3.938 kB / 0.5662 GB, free: 15.06 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.171e-05/0.3762, allocations: 19.95 kB / 0.5662 GB, free: 15.04 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.937e-06/0.3762, allocations: 4 kB / 0.5662 GB, free: 15.04 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.0001228/0.3764, allocations: 133.8 kB / 0.5663 GB, free: 14.9 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.641e-05/0.3764, allocations: 4 kB / 0.5663 GB, free: 14.89 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.722e-05/0.3764, allocations: 12.36 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.528e-06/0.3764, allocations: 4 kB / 0.5663 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.464e-06/0.3764, allocations: 3.938 kB / 0.5664 GB, free: 14.88 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.244e-06/0.3764, allocations: 3.938 kB / 0.5664 GB, free: 14.87 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005335/0.377, allocations: 393.4 kB / 0.5667 GB, free: 14.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.377, allocations: 3.984 kB / 0.5667 GB, free: 14.43 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.396e-05/0.377, allocations: 12 kB / 0.5667 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.107e-06/0.377, allocations: 3.938 kB / 0.5668 GB, free: 14.42 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.077e-06/0.377, allocations: 4 kB / 0.5668 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.817e-06/0.377, allocations: 3.984 kB / 0.5668 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.377, allocations: 0 / 0.5668 GB, free: 14.41 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002337/0.3773, allocations: 176.6 kB / 0.5669 GB, free: 14.22 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.353e-05/0.3773, allocations: 15.83 kB / 0.5669 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.494e-05/0.3773, allocations: 7.984 kB / 0.567 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.646e-05/0.3774, allocations: 4.062 kB / 0.567 GB, free: 14.2 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.776e-05/0.3774, allocations: 11.92 kB / 0.567 GB, free: 14.18 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.262e-06/0.3774, allocations: 4 kB / 0.567 GB, free: 14.18 MB / 414.1 MB Notification: Performance of sorting global known variables: time 5.088e-05/0.3775, allocations: 83.28 kB / 0.567 GB, free: 14.1 MB / 414.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.3775, allocations: 0 / 0.567 GB, free: 14.1 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.0002332/0.3777, allocations: 20 kB / 0.5671 GB, free: 14.08 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.0006337/0.3783, allocations: 0.7478 MB / 0.5678 GB, free: 13.3 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.000191/0.3785, allocations: 51.97 kB / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 1.723e-06/0.3785, allocations: 0 / 0.5678 GB, free: 13.25 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 7.4e-05/0.3786, allocations: 27.92 kB / 0.5679 GB, free: 13.23 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003236/0.3789, allocations: 11.98 kB / 0.5679 GB, free: 13.21 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001776/0.3807, allocations: 1.547 MB / 0.5694 GB, free: 11.59 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.3808, allocations: 126.9 kB / 0.5695 GB, free: 11.45 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 3.723e-05/0.3809, allocations: 4.438 kB / 0.5695 GB, free: 11.44 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.322e-05/0.381, allocations: 47.42 kB / 0.5696 GB, free: 11.39 MB / 414.1 MB Notification: Performance of SimCode: time 4.11e-07/0.381, allocations: 4.062 kB / 0.5696 GB, free: 11.39 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02285/0.4038, allocations: 2.442 MB / 0.572 GB, free: 9.105 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.49/11.89, allocations: 10.72 kB / 0.572 GB, free: 9.102 MB / 414.1 MB " [Timeout remaining time 648] (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: 15.150250472943299]