Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000902/0.0009021, allocations: 199.7 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.206/1.206, allocations: 229.5 MB / 247.7 MB, free: 6.328 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007598/0.0007599, allocations: 95.19 kB / 299.9 MB, free: 5.34 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2742/0.2742, allocations: 45 MB / 397 MB, free: 31.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002247/0.0002248, allocations: 8 kB / 470.8 MB, free: 7.109 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2526/0.2528, allocations: 63.1 MB / 0.5214 GB, free: 38.51 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001214/0.2541, allocations: 1.252 MB / 0.5226 GB, free: 37.58 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001044/0.2542, allocations: 51.5 kB / 0.5226 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.442e-05/0.2542, allocations: 0 / 0.5226 GB, free: 37.55 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001041/0.2543, allocations: 21.73 kB / 0.5227 GB, free: 37.54 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.242e-05/0.2544, allocations: 0 / 0.5227 GB, free: 37.54 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 6.614e-05/0.2544, allocations: 22.12 kB / 0.5227 GB, free: 37.52 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 7.541e-05/0.2545, allocations: 69.23 kB / 0.5227 GB, free: 37.5 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002007/0.2547, allocations: 123.2 kB / 0.5229 GB, free: 37.45 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.521e-05/0.2548, allocations: 16.78 kB / 0.5229 GB, free: 37.44 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.374e-05/0.2548, allocations: 21.64 kB / 0.5229 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.126e-05/0.2548, allocations: 2.938 kB / 0.5229 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.494e-06/0.2548, allocations: 0 / 0.5229 GB, free: 37.42 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 6.659e-05/0.2549, allocations: 49.11 kB / 0.5229 GB, free: 37.41 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.145e-05/0.255, allocations: 77.91 kB / 0.523 GB, free: 37.34 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001045/0.2551, allocations: 131.6 kB / 0.5231 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.2551, allocations: 0 / 0.5231 GB, free: 37.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.582e-06/0.2551, allocations: 0 / 0.5231 GB, free: 37.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.737e-06/0.2551, allocations: 0 / 0.5231 GB, free: 37.3 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.0003112/0.2554, allocations: 418.1 kB / 0.5235 GB, free: 36.89 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.074e-05/0.2555, allocations: 10.03 kB / 0.5236 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.51e-05/0.2555, allocations: 17.89 kB / 0.5236 GB, free: 36.89 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001368/0.2556, allocations: 212.2 kB / 0.5238 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.47e-05/0.2557, allocations: 11.09 kB / 0.5238 GB, free: 36.67 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.165e-05/0.2557, allocations: 22.48 kB / 0.5238 GB, free: 36.66 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00026/0.256, allocations: 189.1 kB / 0.524 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.959e-06/0.256, allocations: 3.938 kB / 0.524 GB, free: 36.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.389e-05/0.256, allocations: 8 kB / 0.524 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.511e-06/0.256, allocations: 9.781 kB / 0.524 GB, free: 36.57 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001741/0.2562, allocations: 129.4 kB / 0.5241 GB, free: 36.54 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004362/0.2566, allocations: 0.4908 MB / 0.5246 GB, free: 36.16 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.004e-05/0.2567, allocations: 47.25 kB / 0.5247 GB, free: 36.13 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.935e-05/0.2568, allocations: 33.08 kB / 0.5247 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.638e-06/0.2568, allocations: 2.594 kB / 0.5247 GB, free: 36.11 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.312e-05/0.2568, allocations: 37.84 kB / 0.5247 GB, free: 36.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.052e-06/0.2568, allocations: 4 kB / 0.5247 GB, free: 36.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001839/0.257, allocations: 76.41 kB / 0.5248 GB, free: 36.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.765e-05/0.257, allocations: 53.94 kB / 0.5249 GB, free: 35.96 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.047e-05/0.2571, allocations: 109 kB / 0.525 GB, free: 35.86 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 5.269e-06/0.2571, allocations: 28.08 kB / 0.525 GB, free: 35.82 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.532e-05/0.2571, allocations: 137.8 kB / 0.5251 GB, free: 35.7 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.521e-05/0.2572, allocations: 22.39 kB / 0.5251 GB, free: 35.68 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.2572, allocations: 3.938 kB / 0.5251 GB, free: 35.68 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 3.777e-05/0.2572, allocations: 321 kB / 0.5254 GB, free: 35.36 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.457e-05/0.2572, allocations: 8.188 kB / 0.5255 GB, free: 35.36 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.798e-05/0.2573, allocations: 16.94 kB / 0.5255 GB, free: 35.36 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.104e-05/0.2573, allocations: 38.33 kB / 0.5255 GB, free: 35.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.302e-06/0.2574, allocations: 0 / 0.5255 GB, free: 35.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.98e-05/0.2574, allocations: 74.23 kB / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.297e-06/0.2575, allocations: 5.656 kB / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.005e-06/0.2575, allocations: 0 / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.166e-05/0.2575, allocations: 0 / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.382e-05/0.2576, allocations: 16.2 kB / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.339e-06/0.2576, allocations: 0 / 0.5256 GB, free: 35.29 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.391e-05/0.2576, allocations: 14.97 kB / 0.5256 GB, free: 35.28 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.47e-06/0.2576, allocations: 4 kB / 0.5256 GB, free: 35.27 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 5.824e-05/0.2577, allocations: 133 kB / 0.5257 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.082e-05/0.2577, allocations: 6.875 kB / 0.5258 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.465e-05/0.2577, allocations: 7.969 kB / 0.5258 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.102e-06/0.2577, allocations: 0 / 0.5258 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.016e-06/0.2577, allocations: 0 / 0.5258 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.094e-06/0.2577, allocations: 2.812 kB / 0.5258 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002397/0.258, allocations: 369.2 kB / 0.5261 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.258, allocations: 0 / 0.5261 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.618e-05/0.258, allocations: 12.5 kB / 0.5261 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.422e-06/0.258, allocations: 0 / 0.5261 GB, free: 34.82 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.541e-06/0.2581, allocations: 4 kB / 0.5261 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.523e-06/0.2581, allocations: 3 kB / 0.5261 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.61e-07/0.2581, allocations: 0 / 0.5261 GB, free: 34.81 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001021/0.2582, allocations: 166.5 kB / 0.5263 GB, free: 34.66 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.399e-05/0.2582, allocations: 79.64 kB / 0.5264 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.023e-05/0.2582, allocations: 192 / 0.5264 GB, free: 34.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.926e-05/0.2583, allocations: 13.78 kB / 0.5264 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.118e-05/0.2583, allocations: 6.062 kB / 0.5264 GB, free: 34.56 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.065e-06/0.2583, allocations: 10.78 kB / 0.5264 GB, free: 34.55 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.278e-05/0.2583, allocations: 82.75 kB / 0.5265 GB, free: 34.48 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2583, allocations: 0 / 0.5265 GB, free: 34.48 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001961/0.2585, allocations: 30.34 kB / 0.5265 GB, free: 34.46 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 6.157e-05/0.2586, allocations: 100.4 kB / 0.5266 GB, free: 34.37 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001046/0.2587, allocations: 34.78 kB / 0.5266 GB, free: 34.36 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.382e-06/0.2587, allocations: 4 kB / 0.5266 GB, free: 34.36 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.065e-05/0.2588, allocations: 26.78 kB / 0.5267 GB, free: 34.35 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002362/0.259, allocations: 13.02 kB / 0.5267 GB, free: 34.34 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000367/0.2594, allocations: 328.8 kB / 0.527 GB, free: 34.1 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001225/0.2595, allocations: 0.7307 MB / 0.5277 GB, free: 33.4 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 2.351e-05/0.2595, allocations: 2.688 kB / 0.5277 GB, free: 33.4 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.713e-05/0.2596, allocations: 12.59 kB / 0.5277 GB, free: 33.39 MB / 378.7 MB Notification: Performance of SimCode: time 3.21e-07/0.2596, allocations: 4 kB / 0.5277 GB, free: 33.39 MB / 378.7 MB Notification: Performance of Templates: time 0.002082/0.2617, allocations: 0.6159 MB / 0.5283 GB, free: 33.3 MB / 378.7 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches