Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001061/0.001061, allocations: 118.8 kB / 17.79 MB, free: 5.305 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 197.2 kB / 18.73 MB, free: 4.363 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.461/1.461, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2216/0.2216, allocations: 46.1 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001521/0.001521, allocations: 79.86 kB / 481.3 MB, free: 4.086 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4235/0.4251, allocations: 62.44 MB / 0.531 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002928/0.4281, allocations: 1.564 MB / 0.5325 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002669/0.4283, allocations: 64.12 kB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.584e-05/0.4284, allocations: 1.375 kB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001884/0.4286, allocations: 18.61 kB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.821e-05/0.4287, allocations: 3.938 kB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001799/0.4289, allocations: 33.41 kB / 0.5326 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001382/0.429, allocations: 68.75 kB / 0.5327 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003545/0.4294, allocations: 130.4 kB / 0.5328 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.759e-05/0.4294, allocations: 34.23 kB / 0.5329 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.314e-05/0.4295, allocations: 43.09 kB / 0.5329 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.801e-05/0.4296, allocations: 8.25 kB / 0.5329 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.19e-05/0.4296, allocations: 8.5 kB / 0.5329 GB, free: 12.13 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 8.805e-05/0.4297, allocations: 67.28 kB / 0.533 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.146e-05/0.4298, allocations: 63.98 kB / 0.533 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002067/0.43, allocations: 153.5 kB / 0.5332 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.43, allocations: 1.312 kB / 0.5332 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.43, allocations: 3.938 kB / 0.5332 GB, free: 11.93 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.43, allocations: 0 / 0.5332 GB, free: 11.93 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.0005723/0.4306, allocations: 436.3 kB / 0.5336 GB, free: 11.51 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.672e-05/0.4306, allocations: 9.094 kB / 0.5336 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.044e-05/0.4307, allocations: 20.8 kB / 0.5336 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002602/0.431, allocations: 215.2 kB / 0.5338 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.534e-05/0.431, allocations: 13.16 kB / 0.5339 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.468e-05/0.431, allocations: 27.31 kB / 0.5339 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003614/0.4314, allocations: 194.1 kB / 0.5341 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.227e-05/0.4314, allocations: 3.938 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.019e-05/0.4315, allocations: 6.406 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.509e-05/0.4315, allocations: 8.328 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002606/0.4317, allocations: 126.8 kB / 0.5342 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006235/0.4324, allocations: 496 kB / 0.5347 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.408e-05/0.4325, allocations: 39.06 kB / 0.5347 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.482e-05/0.4325, allocations: 36.03 kB / 0.5347 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.538e-05/0.4326, allocations: 0 / 0.5347 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.4326, allocations: 31.94 kB / 0.5348 GB, free: 10.54 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 9.02e-07/0.4326, allocations: 4 kB / 0.5348 GB, free: 10.54 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002421/0.4328, allocations: 74.48 kB / 0.5349 GB, free: 10.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.306e-05/0.4329, allocations: 51.41 kB / 0.5349 GB, free: 10.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.943e-05/0.433, allocations: 116.8 kB / 0.535 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.3e-05/0.433, allocations: 25.7 kB / 0.535 GB, free: 10.28 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.172e-05/0.4331, allocations: 136.1 kB / 0.5352 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.182e-05/0.4331, allocations: 14.55 kB / 0.5352 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.499e-05/0.4332, allocations: 21.84 kB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000102/0.4333, allocations: 312.2 kB / 0.5355 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.33e-05/0.4333, allocations: 14.86 kB / 0.5355 GB, free: 9.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.099e-05/0.4333, allocations: 6.875 kB / 0.5355 GB, free: 9.789 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.572e-05/0.4334, allocations: 33.72 kB / 0.5356 GB, free: 9.77 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.4334, allocations: 3.938 kB / 0.5356 GB, free: 9.766 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001199/0.4336, allocations: 75.52 kB / 0.5356 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.63e-05/0.4336, allocations: 9.5 kB / 0.5356 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.398e-06/0.4336, allocations: 0 / 0.5356 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.4336, allocations: 1.375 kB / 0.5356 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.004e-05/0.4337, allocations: 10.86 kB / 0.5356 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.711e-06/0.4337, allocations: 5.312 kB / 0.5357 GB, free: 9.695 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.703e-05/0.4337, allocations: 5.312 kB / 0.5357 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.194e-06/0.4338, allocations: 1.375 kB / 0.5357 GB, free: 9.691 MB / 398.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 0.0001046/0.4339, allocations: 140 kB / 0.5358 GB, free: 9.559 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.611e-05/0.4339, allocations: 10 kB / 0.5358 GB, free: 9.551 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.395e-05/0.4339, allocations: 12.94 kB / 0.5358 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.374e-06/0.4339, allocations: 5.188 kB / 0.5358 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.4339, allocations: 0 / 0.5358 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.907e-06/0.434, allocations: 0 / 0.5358 GB, free: 9.535 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003688/0.4343, allocations: 368 kB / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.4343, allocations: 0 / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.425e-05/0.4344, allocations: 8.75 kB / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.563e-06/0.4344, allocations: 0 / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.342e-06/0.4344, allocations: 1.156 kB / 0.5362 GB, free: 9.176 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.4344, allocations: 9.031 kB / 0.5362 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.4344, allocations: 0 / 0.5362 GB, free: 9.168 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001578/0.4346, allocations: 162 kB / 0.5363 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.903e-05/0.4346, allocations: 83.11 kB / 0.5364 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.306e-05/0.4347, allocations: 1.062 kB / 0.5364 GB, free: 8.918 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.513e-05/0.4347, allocations: 6.328 kB / 0.5364 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.482e-05/0.4347, allocations: 5.094 kB / 0.5364 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.26e-06/0.4347, allocations: 9.094 kB / 0.5364 GB, free: 8.902 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.375e-05/0.4348, allocations: 81.59 kB / 0.5365 GB, free: 8.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4348, allocations: 0 / 0.5365 GB, free: 8.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002291/0.435, allocations: 37.27 kB / 0.5366 GB, free: 8.805 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 8.605e-05/0.4351, allocations: 90.41 kB / 0.5366 GB, free: 8.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001423/0.4353, allocations: 36.52 kB / 0.5367 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.4353, allocations: 0 / 0.5367 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.456e-05/0.4353, allocations: 23.73 kB / 0.5367 GB, free: 8.691 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003062/0.4356, allocations: 10.44 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004882/0.4361, allocations: 259.9 kB / 0.537 GB, free: 8.496 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002771/0.4364, allocations: 0.7352 MB / 0.5377 GB, free: 7.77 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.228e-05/0.4365, allocations: 7.312 kB / 0.5377 GB, free: 7.766 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.53e-05/0.4365, allocations: 10.88 kB / 0.5377 GB, free: 7.758 MB / 398.1 MB Notification: Performance of SimCode: time 1.423e-06/0.4365, allocations: 4 kB / 0.5377 GB, free: 7.754 MB / 398.1 MB Notification: Performance of Templates: time 0.002808/0.4393, allocations: 0.6429 MB / 0.5383 GB, free: 7.422 MB / 398.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches