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.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) 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.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001028/0.001028, allocations: 117.2 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009809/0.000981, allocations: 184.2 kB / 18.71 MB, free: 4.34 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.494/1.494, allocations: 222.9 MB / 242.4 MB, free: 15.04 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2412/0.2412, allocations: 44.2 MB / 336.7 MB, free: 2.648 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001396/0.001396, allocations: 67.91 kB / 470.5 MB, free: 13.16 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4156/0.417, allocations: 60.82 MB / 0.5189 GB, free: 3.863 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002235/0.4193, allocations: 1.547 MB / 0.5204 GB, free: 2.781 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001153/0.4194, allocations: 58.22 kB / 0.5205 GB, free: 2.738 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.347e-05/0.4195, allocations: 5.969 kB / 0.5205 GB, free: 2.734 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001313/0.4196, allocations: 19.77 kB / 0.5205 GB, free: 2.723 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.801e-05/0.4196, allocations: 4.5 kB / 0.5205 GB, free: 2.719 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 9.033e-05/0.4197, allocations: 24.69 kB / 0.5205 GB, free: 2.707 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001074/0.4199, allocations: 74.22 kB / 0.5206 GB, free: 2.676 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002563/0.4201, allocations: 124 kB / 0.5207 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.896e-05/0.4202, allocations: 43.98 kB / 0.5207 GB, free: 2.598 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.907e-05/0.4202, allocations: 43.12 kB / 0.5208 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.023e-05/0.4203, allocations: 8.312 kB / 0.5208 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.517e-05/0.4203, allocations: 8.469 kB / 0.5208 GB, free: 2.574 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 9.047e-05/0.4204, allocations: 66.08 kB / 0.5209 GB, free: 2.551 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 6.379e-05/0.4204, allocations: 65.2 kB / 0.5209 GB, free: 2.508 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001737/0.4206, allocations: 150.7 kB / 0.5211 GB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.79e-06/0.4206, allocations: 1.156 kB / 0.5211 GB, free: 2.441 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.4206, allocations: 0 / 0.5211 GB, free: 2.441 MB / 382.1 MB Notification: Performance of Transformations before backend: time 6.072e-06/0.4207, allocations: 0 / 0.5211 GB, free: 2.441 MB / 382.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.0004252/0.4211, allocations: 440.6 kB / 0.5215 GB, free: 2.031 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.439e-05/0.4211, allocations: 9.312 kB / 0.5215 GB, free: 2.031 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.379e-05/0.4212, allocations: 17.38 kB / 0.5215 GB, free: 2.023 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001672/0.4213, allocations: 212 kB / 0.5217 GB, free: 1.809 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.859e-05/0.4214, allocations: 12.12 kB / 0.5217 GB, free: 1.805 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.117e-05/0.4214, allocations: 20.84 kB / 0.5217 GB, free: 1.797 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003448/0.4218, allocations: 195.7 kB / 0.5219 GB, free: 1.711 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.17e-05/0.4218, allocations: 11.81 kB / 0.5219 GB, free: 1.699 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.752e-05/0.4218, allocations: 6.688 kB / 0.522 GB, free: 1.695 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.484e-06/0.4218, allocations: 9.047 kB / 0.522 GB, free: 1.691 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002308/0.422, allocations: 125.5 kB / 0.5221 GB, free: 1.66 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005624/0.4226, allocations: 492.2 kB / 0.5225 GB, free: 1.297 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.528e-05/0.4227, allocations: 45.58 kB / 0.5226 GB, free: 1.262 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.374e-05/0.4228, allocations: 36.69 kB / 0.5226 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.09e-05/0.4228, allocations: 0 / 0.5226 GB, free: 1.242 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.704e-05/0.4228, allocations: 32.36 kB / 0.5227 GB, free: 1.203 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 8.61e-07/0.4228, allocations: 0 / 0.5227 GB, free: 1.203 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002412/0.4231, allocations: 77.25 kB / 0.5227 GB, free: 1.156 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.33e-05/0.4231, allocations: 53.25 kB / 0.5228 GB, free: 1.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.55e-05/0.4232, allocations: 115.5 kB / 0.5229 GB, free: 0.9844 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.843e-06/0.4232, allocations: 27.17 kB / 0.5229 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.553e-05/0.4232, allocations: 135.6 kB / 0.523 GB, free: 0.8281 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.762e-05/0.4233, allocations: 13.19 kB / 0.5231 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.777e-05/0.4233, allocations: 17.47 kB / 0.5231 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.476e-05/0.4233, allocations: 317.7 kB / 0.5234 GB, free: 496 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.321e-05/0.4234, allocations: 9.672 kB / 0.5234 GB, free: 496 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.531e-05/0.4234, allocations: 17.09 kB / 0.5234 GB, free: 488 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.739e-05/0.4235, allocations: 32.36 kB / 0.5234 GB, free: 472 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.563e-06/0.4235, allocations: 0 / 0.5234 GB, free: 472 kB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001155/0.4236, allocations: 73.08 kB / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.383e-05/0.4237, allocations: 5.625 kB / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.178e-06/0.4237, allocations: 320 / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.458e-05/0.4237, allocations: 1.812 kB / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.501e-05/0.4238, allocations: 9.297 kB / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.571e-06/0.4238, allocations: 0 / 0.5235 GB, free: 420 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.807e-05/0.4238, allocations: 11.88 kB / 0.5235 GB, free: 412 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.584e-06/0.4238, allocations: 5.141 kB / 0.5235 GB, free: 408 kB / 382.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 8.826e-05/0.4239, allocations: 134.1 kB / 0.5237 GB, free: 284 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.604e-05/0.424, allocations: 10.09 kB / 0.5237 GB, free: 276 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.223e-05/0.424, allocations: 10.69 kB / 0.5237 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.424, allocations: 0 / 0.5237 GB, free: 268 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.878e-06/0.424, allocations: 5.188 kB / 0.5237 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.424, allocations: 0 / 0.5237 GB, free: 264 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003739/0.4244, allocations: 365.3 kB / 0.524 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4244, allocations: 0.5 kB / 0.524 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.472e-05/0.4245, allocations: 10.84 kB / 0.5241 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.684e-06/0.4245, allocations: 0 / 0.5241 GB, free: 15.93 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.481e-05/0.4245, allocations: 14.06 kB / 0.5241 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.292e-06/0.4245, allocations: 0 / 0.5241 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.4245, allocations: 0 / 0.5241 GB, free: 15.91 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001769/0.4247, allocations: 166.1 kB / 0.5242 GB, free: 15.77 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.413e-05/0.4248, allocations: 83.09 kB / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.395e-05/0.4248, allocations: 0.5156 kB / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.499e-05/0.4249, allocations: 2.531 kB / 0.5243 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.85e-05/0.4249, allocations: 7.953 kB / 0.5243 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.568e-06/0.4249, allocations: 2.016 kB / 0.5243 GB, free: 15.66 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.761e-05/0.425, allocations: 83.48 kB / 0.5244 GB, free: 15.59 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.425, allocations: 0 / 0.5244 GB, free: 15.59 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002424/0.4252, allocations: 25.16 kB / 0.5244 GB, free: 15.58 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 (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 9.376e-05/0.4253, allocations: 99.83 kB / 0.5245 GB, free: 15.48 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001851/0.4255, allocations: 37.55 kB / 0.5245 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.983e-06/0.4255, allocations: 0 / 0.5245 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5.299e-05/0.4256, allocations: 19.14 kB / 0.5246 GB, free: 15.47 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002979/0.4259, allocations: 14.84 kB / 0.5246 GB, free: 15.46 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005598/0.4264, allocations: 264.1 kB / 0.5248 GB, free: 15.29 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.4268, allocations: 0.7335 MB / 0.5255 GB, free: 14.58 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.467e-05/0.4268, allocations: 9.781 kB / 0.5256 GB, free: 14.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.761e-05/0.4269, allocations: 9.406 kB / 0.5256 GB, free: 14.57 MB / 398.1 MB Notification: Performance of SimCode: time 2.5e-07/0.4269, allocations: 2.125 kB / 0.5256 GB, free: 14.57 MB / 398.1 MB Notification: Performance of Templates: time 0.003102/0.43, allocations: 0.6767 MB / 0.5262 GB, free: 14.48 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches