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.001278/0.001278, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001664/0.001664, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.496/1.496, allocations: 230.6 MB / 258.3 MB, free: 8 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.2208/0.2208, allocations: 44.9 MB / 359.6 MB, free: 6.297 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.002053/0.002053, allocations: 63.89 kB / 0.4938 GB, free: 10.74 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3747/0.3767, allocations: 65.48 MB / 0.5578 GB, free: 7.52 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.0033/0.38, allocations: 1.571 MB / 0.5593 GB, free: 6.203 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000273/0.3803, allocations: 55.77 kB / 0.5594 GB, free: 6.148 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.196e-05/0.3804, allocations: 3.938 kB / 0.5594 GB, free: 6.145 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.3805, allocations: 23.84 kB / 0.5594 GB, free: 6.121 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.701e-05/0.3806, allocations: 11.92 kB / 0.5594 GB, free: 6.109 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001755/0.3807, allocations: 27.97 kB / 0.5594 GB, free: 6.082 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001537/0.3809, allocations: 71.77 kB / 0.5595 GB, free: 6.012 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002953/0.3812, allocations: 85.44 kB / 0.5596 GB, free: 5.922 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.572e-05/0.3813, allocations: 43.89 kB / 0.5596 GB, free: 5.879 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.237e-05/0.3814, allocations: 39.84 kB / 0.5597 GB, free: 5.84 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.797e-05/0.3814, allocations: 8 kB / 0.5597 GB, free: 5.832 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.929e-05/0.3814, allocations: 8 kB / 0.5597 GB, free: 5.824 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001055/0.3815, allocations: 71.81 kB / 0.5598 GB, free: 5.754 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001012/0.3816, allocations: 63.61 kB / 0.5598 GB, free: 5.691 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002117/0.3818, allocations: 155.3 kB / 0.56 GB, free: 5.539 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.843e-06/0.3818, allocations: 4 kB / 0.56 GB, free: 5.535 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3818, allocations: 0 / 0.56 GB, free: 5.535 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.422e-06/0.3818, allocations: 0 / 0.56 GB, free: 5.535 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.0005631/0.3824, allocations: 372.3 kB / 0.5603 GB, free: 5.145 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.048e-05/0.3824, allocations: 8.031 kB / 0.5603 GB, free: 5.137 MB / 398.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.814e-05/0.3825, allocations: 12.61 kB / 0.5603 GB, free: 5.121 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.281e-05/0.3826, allocations: 79.17 kB / 0.5604 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.845e-05/0.3826, allocations: 20.8 kB / 0.5604 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002274/0.3829, allocations: 158.3 kB / 0.5606 GB, free: 4.836 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.3e-05/0.3829, allocations: 16.88 kB / 0.5606 GB, free: 4.82 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.3829, allocations: 24.33 kB / 0.5606 GB, free: 4.797 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003937/0.3833, allocations: 224.2 kB / 0.5608 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.004e-05/0.3833, allocations: 0 / 0.5608 GB, free: 4.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.944e-05/0.3833, allocations: 12 kB / 0.5609 GB, free: 4.559 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.3834, allocations: 4 kB / 0.5609 GB, free: 4.555 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002821/0.3836, allocations: 145.9 kB / 0.561 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007821/0.3844, allocations: 0.5146 MB / 0.5615 GB, free: 3.855 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001201/0.3845, allocations: 42.56 kB / 0.5615 GB, free: 3.805 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.992e-05/0.3846, allocations: 44.78 kB / 0.5616 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.435e-05/0.3846, allocations: 0 / 0.5616 GB, free: 3.758 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3847, allocations: 34.5 kB / 0.5616 GB, free: 3.715 MB / 398.1 MB Notification: Performance of pre-optimization done (n=7): time 1.001e-06/0.3847, allocations: 0 / 0.5616 GB, free: 3.715 MB / 398.1 MB Notification: Performance of matching and sorting (n=8): time 0.0006329/0.3853, allocations: 177.7 kB / 0.5618 GB, free: 3.535 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.492e-05/0.3854, allocations: 63.34 kB / 0.5618 GB, free: 3.461 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001164/0.3855, allocations: 113.9 kB / 0.562 GB, free: 3.34 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.39e-05/0.3855, allocations: 29.7 kB / 0.562 GB, free: 3.305 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001113/0.3856, allocations: 148.3 kB / 0.5621 GB, free: 3.152 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.286e-05/0.3857, allocations: 27.75 kB / 0.5621 GB, free: 3.125 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.728e-05/0.3858, allocations: 21.7 kB / 0.5622 GB, free: 3.098 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001798/0.3859, allocations: 310.8 kB / 0.5625 GB, free: 2.785 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.199e-05/0.386, allocations: 19.98 kB / 0.5625 GB, free: 2.766 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.468e-05/0.3861, allocations: 41.69 kB / 0.5625 GB, free: 2.719 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001782/0.3863, allocations: 57.69 kB / 0.5626 GB, free: 2.656 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.3863, allocations: 0 / 0.5626 GB, free: 2.656 MB / 398.1 MB Notification: Performance of matching and sorting (n=8) (initialization): time 0.0002111/0.3865, allocations: 89.56 kB / 0.5627 GB, free: 2.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.3865, allocations: 8.031 kB / 0.5627 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.374e-06/0.3865, allocations: 0 / 0.5627 GB, free: 2.555 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.295e-05/0.3865, allocations: 4 kB / 0.5627 GB, free: 2.551 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001148/0.3866, allocations: 15.98 kB / 0.5627 GB, free: 2.535 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.957e-06/0.3867, allocations: 3.938 kB / 0.5627 GB, free: 2.531 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.366e-05/0.3867, allocations: 12 kB / 0.5627 GB, free: 2.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.495e-05/0.3867, allocations: 7.984 kB / 0.5627 GB, free: 2.512 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.0001597/0.3869, allocations: 133.8 kB / 0.5628 GB, free: 2.371 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.724e-05/0.3869, allocations: 8 kB / 0.5629 GB, free: 2.363 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.063e-05/0.3869, allocations: 8.375 kB / 0.5629 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.775e-06/0.3869, allocations: 0 / 0.5629 GB, free: 2.355 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.3869, allocations: 3.938 kB / 0.5629 GB, free: 2.352 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.045e-06/0.387, allocations: 7.984 kB / 0.5629 GB, free: 2.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006353/0.3876, allocations: 393.4 kB / 0.5632 GB, free: 1.91 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.3876, allocations: 4 kB / 0.5632 GB, free: 1.906 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.891e-05/0.3877, allocations: 15.98 kB / 0.5633 GB, free: 1.891 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.3877, allocations: 7.938 kB / 0.5633 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.426e-06/0.3877, allocations: 0 / 0.5633 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.533e-06/0.3877, allocations: 3.938 kB / 0.5633 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.362e-06/0.3877, allocations: 4 kB / 0.5633 GB, free: 1.875 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002893/0.388, allocations: 187.4 kB / 0.5635 GB, free: 1.676 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.335e-05/0.388, allocations: 7.891 kB / 0.5635 GB, free: 1.668 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.771e-05/0.388, allocations: 4 kB / 0.5635 GB, free: 1.664 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.7e-05/0.3881, allocations: 8 kB / 0.5635 GB, free: 1.656 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.337e-05/0.3881, allocations: 7.984 kB / 0.5635 GB, free: 1.648 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.048e-06/0.3881, allocations: 0 / 0.5635 GB, free: 1.648 MB / 398.1 MB Notification: Performance of sorting global known variables: time 6.115e-05/0.3882, allocations: 91.27 kB / 0.5636 GB, free: 1.559 MB / 398.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3882, allocations: 0 / 0.5636 GB, free: 1.559 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002399/0.3884, allocations: 12 kB / 0.5636 GB, free: 1.547 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.0008213/0.3892, allocations: 0.7443 MB / 0.5643 GB, free: 0.7773 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0002298/0.3895, allocations: 52.02 kB / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.3895, allocations: 0 / 0.5644 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 8.532e-05/0.3896, allocations: 35.91 kB / 0.5644 GB, free: 0.6914 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004053/0.39, allocations: 16.28 kB / 0.5644 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001943/0.3919, allocations: 1.529 MB / 0.5659 GB, free: 15.06 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004002/0.3923, allocations: 0.7471 MB / 0.5666 GB, free: 14.29 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 4.006e-05/0.3923, allocations: 8.422 kB / 0.5666 GB, free: 14.28 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.632e-05/0.3924, allocations: 47.42 kB / 0.5667 GB, free: 14.23 MB / 414.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3924, allocations: 0 / 0.5667 GB, free: 14.23 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02249/0.4149, allocations: 2.357 MB / 0.569 GB, free: 12.02 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.34/11.76, allocations: 8 kB / 0.569 GB, free: 12.02 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: 14.916437803010922]