Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaTest with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux") translateModel(ModelicaTest.Blocks.MuxDemux,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|y1|y2|y3|y4|y5|clock.y|mux5.y.1.|mux5.y.2.|mux5.y.3.|mux5.y.4.|mux5.y.5.|demux5.y.1.|demux5.y.2.|demux5.y.3.|demux5.y.4.|demux5.y.5.|mux3.y.1.|mux3.y.2.|mux3.y.3.|mux2.y.1.|mux2.y.2.|demux2.y.1.|demux2.y.2.|demux3.y.1.|demux3.y.2.|demux3.y.3.",fileNamePrefix="ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001607/0.001608, allocations: 173.2 kB / 17.4 MB, free: 4.395 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.445/1.445, allocations: 225.7 MB / 243.9 MB, free: 10.19 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00075/0.00075, allocations: 98.34 kB / 295 MB, free: 9.723 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.3188/0.3188, allocations: 44.33 MB / 390.5 MB, free: 38.34 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003092/0.0003092, allocations: 8 kB / 463.1 MB, free: 472 kB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2894/0.2897, allocations: 61.9 MB / 0.5127 GB, free: 38.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001309/0.291, allocations: 1.244 MB / 0.5139 GB, free: 37.19 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001172/0.2912, allocations: 49.73 kB / 0.514 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.819e-05/0.2912, allocations: 3.344 kB / 0.514 GB, free: 37.16 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001246/0.2914, allocations: 15.11 kB / 0.514 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.034e-05/0.2914, allocations: 0 / 0.514 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.465e-05/0.2915, allocations: 20.22 kB / 0.514 GB, free: 37.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.066e-05/0.2916, allocations: 65.73 kB / 0.5141 GB, free: 37.11 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002293/0.2918, allocations: 123 kB / 0.5142 GB, free: 37.06 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.898e-05/0.2919, allocations: 25.27 kB / 0.5142 GB, free: 37.04 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.922e-05/0.2919, allocations: 16.52 kB / 0.5143 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.2919, allocations: 0 / 0.5143 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.087e-06/0.2919, allocations: 2.812 kB / 0.5143 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.994e-05/0.292, allocations: 49.83 kB / 0.5143 GB, free: 37.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.555e-05/0.2921, allocations: 75.16 kB / 0.5144 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000113/0.2922, allocations: 130.4 kB / 0.5145 GB, free: 36.91 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.93e-06/0.2922, allocations: 0 / 0.5145 GB, free: 36.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2922, allocations: 0 / 0.5145 GB, free: 36.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.739e-06/0.2922, allocations: 0 / 0.5145 GB, free: 36.91 MB / 378.7 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.0003537/0.2926, allocations: 416.5 kB / 0.5149 GB, free: 36.51 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.32e-05/0.2926, allocations: 11.97 kB / 0.5149 GB, free: 36.51 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.646e-05/0.2927, allocations: 17.5 kB / 0.5149 GB, free: 36.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001465/0.2928, allocations: 213.6 kB / 0.5151 GB, free: 36.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.147e-05/0.2928, allocations: 14.84 kB / 0.5151 GB, free: 36.28 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.353e-05/0.2929, allocations: 16.31 kB / 0.5152 GB, free: 36.27 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002785/0.2931, allocations: 195.4 kB / 0.5153 GB, free: 36.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.809e-06/0.2932, allocations: 7.938 kB / 0.5153 GB, free: 36.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.601e-05/0.2932, allocations: 11 kB / 0.5154 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2932, allocations: 2.938 kB / 0.5154 GB, free: 36.17 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001789/0.2934, allocations: 128.3 kB / 0.5155 GB, free: 36.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004901/0.2939, allocations: 0.493 MB / 0.516 GB, free: 35.77 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.893e-05/0.294, allocations: 48.17 kB / 0.516 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.66e-05/0.294, allocations: 33.02 kB / 0.516 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.109e-05/0.294, allocations: 0 / 0.516 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.606e-05/0.2941, allocations: 38.12 kB / 0.5161 GB, free: 35.68 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 9.31e-07/0.2941, allocations: 0 / 0.5161 GB, free: 35.68 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002025/0.2943, allocations: 86.62 kB / 0.5162 GB, free: 35.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.933e-05/0.2943, allocations: 51.92 kB / 0.5162 GB, free: 35.56 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.566e-05/0.2944, allocations: 112.2 kB / 0.5163 GB, free: 35.46 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 6.913e-06/0.2944, allocations: 25.7 kB / 0.5163 GB, free: 35.43 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.51e-05/0.2944, allocations: 145.6 kB / 0.5165 GB, free: 35.3 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.657e-05/0.2945, allocations: 13.59 kB / 0.5165 GB, free: 35.29 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.106e-06/0.2945, allocations: 2.688 kB / 0.5165 GB, free: 35.29 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.418e-05/0.2945, allocations: 312.2 kB / 0.5168 GB, free: 34.97 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.883e-05/0.2946, allocations: 15.19 kB / 0.5168 GB, free: 34.97 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.044e-05/0.2946, allocations: 11.05 kB / 0.5168 GB, free: 34.97 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.577e-05/0.2947, allocations: 47.2 kB / 0.5169 GB, free: 34.95 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.2947, allocations: 0 / 0.5169 GB, free: 34.95 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.104e-05/0.2948, allocations: 68.03 kB / 0.5169 GB, free: 34.9 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.343e-05/0.2948, allocations: 5.719 kB / 0.5169 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2948, allocations: 3.938 kB / 0.5169 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.161e-05/0.2948, allocations: 0 / 0.5169 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.173e-05/0.2949, allocations: 11.47 kB / 0.517 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.649e-06/0.2949, allocations: 4 kB / 0.517 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.435e-05/0.295, allocations: 10.84 kB / 0.517 GB, free: 34.89 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.072e-06/0.295, allocations: 1.969 kB / 0.517 GB, free: 34.89 MB / 378.7 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 7.051e-05/0.2951, allocations: 134.5 kB / 0.5171 GB, free: 34.77 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.158e-05/0.2951, allocations: 6.094 kB / 0.5171 GB, free: 34.76 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.877e-05/0.2951, allocations: 8.969 kB / 0.5171 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-06/0.2951, allocations: 1.062 kB / 0.5171 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.629e-06/0.2951, allocations: 4.297 kB / 0.5171 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.114e-06/0.2951, allocations: 4 kB / 0.5171 GB, free: 34.75 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000267/0.2954, allocations: 361.8 kB / 0.5175 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.2954, allocations: 1.156 kB / 0.5175 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.991e-05/0.2955, allocations: 15.98 kB / 0.5175 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.535e-06/0.2955, allocations: 1.062 kB / 0.5175 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.29e-06/0.2955, allocations: 0 / 0.5175 GB, free: 34.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.522e-06/0.2955, allocations: 5.25 kB / 0.5175 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.2955, allocations: 0 / 0.5175 GB, free: 34.41 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001233/0.2956, allocations: 172.1 kB / 0.5177 GB, free: 34.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.813e-05/0.2956, allocations: 79.17 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.151e-05/0.2957, allocations: 3.469 kB / 0.5177 GB, free: 34.17 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.999e-05/0.2957, allocations: 11.09 kB / 0.5177 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.916e-05/0.2957, allocations: 2.188 kB / 0.5177 GB, free: 34.16 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.945e-06/0.2958, allocations: 0.9688 kB / 0.5177 GB, free: 34.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.544e-05/0.2958, allocations: 92.42 kB / 0.5178 GB, free: 34.08 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2958, allocations: 5.062 kB / 0.5178 GB, free: 34.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001925/0.296, allocations: 28.81 kB / 0.5179 GB, free: 34.06 MB / 378.7 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 7.258e-05/0.2961, allocations: 102.2 kB / 0.518 GB, free: 33.96 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001253/0.2962, allocations: 41.84 kB / 0.518 GB, free: 33.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.533e-06/0.2962, allocations: 0 / 0.518 GB, free: 33.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.076e-05/0.2963, allocations: 25.48 kB / 0.518 GB, free: 33.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002457/0.2965, allocations: 9.875 kB / 0.518 GB, free: 33.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003925/0.2969, allocations: 331.5 kB / 0.5184 GB, free: 33.7 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001308/0.2971, allocations: 0.7351 MB / 0.5191 GB, free: 32.99 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.574e-05/0.2971, allocations: 6.969 kB / 0.5191 GB, free: 32.99 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.735e-05/0.2971, allocations: 10.22 kB / 0.5191 GB, free: 32.98 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.2971, allocations: 2.625 kB / 0.5191 GB, free: 32.98 MB / 378.7 MB Notification: Performance of Templates: time 0.00252/0.2996, allocations: 0.6115 MB / 0.5197 GB, free: 32.9 MB / 378.7 MB make -j1 -f ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.makefile (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 & ./ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches