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.001229/0.001229, allocations: 118.2 kB / 17.79 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00152/0.00152, allocations: 202 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.594/1.594, allocations: 227.4 MB / 246.9 MB, free: 10.5 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.248/0.248, allocations: 46.11 MB / 344.3 MB, free: 11.52 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00129/0.00129, allocations: 75.88 kB / 481.3 MB, free: 4.098 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4117/0.413, allocations: 62.44 MB / 0.531 GB, free: 13.61 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003179/0.4162, allocations: 1.563 MB / 0.5325 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002717/0.4165, allocations: 60.14 kB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.908e-05/0.4166, allocations: 5.312 kB / 0.5326 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.4168, allocations: 18.48 kB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.51e-05/0.4168, allocations: 3.938 kB / 0.5326 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001676/0.417, allocations: 30.64 kB / 0.5326 GB, free: 12.29 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001325/0.4171, allocations: 68.56 kB / 0.5327 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003255/0.4175, allocations: 125.7 kB / 0.5328 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.746e-05/0.4175, allocations: 38.28 kB / 0.5328 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.402e-05/0.4176, allocations: 46.3 kB / 0.5329 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 3.524e-05/0.4177, allocations: 8.562 kB / 0.5329 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.341e-05/0.4177, allocations: 7.875 kB / 0.5329 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.071e-05/0.4178, allocations: 68.03 kB / 0.533 GB, free: 12.09 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 8.798e-05/0.4179, allocations: 64.27 kB / 0.533 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002192/0.4181, allocations: 150.3 kB / 0.5332 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.4181, allocations: 0 / 0.5332 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.4181, allocations: 0 / 0.5332 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.397e-05/0.4181, allocations: 5.031 kB / 0.5332 GB, free: 11.94 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.000595/0.4187, allocations: 441.4 kB / 0.5336 GB, free: 11.5 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.18e-05/0.4188, allocations: 9.75 kB / 0.5336 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.469e-05/0.4188, allocations: 21.06 kB / 0.5336 GB, free: 11.49 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002127/0.4191, allocations: 223.8 kB / 0.5338 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.127e-05/0.4191, allocations: 12.66 kB / 0.5339 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.034e-05/0.4191, allocations: 19.22 kB / 0.5339 GB, free: 11.25 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003761/0.4195, allocations: 194.1 kB / 0.5341 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.32e-05/0.4195, allocations: 7.875 kB / 0.5341 GB, free: 11.12 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.858e-05/0.4196, allocations: 9.219 kB / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.4196, allocations: 4.906 kB / 0.5341 GB, free: 11.11 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002141/0.4198, allocations: 126.7 kB / 0.5342 GB, free: 11.06 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006497/0.4204, allocations: 0.4899 MB / 0.5347 GB, free: 10.62 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.207e-05/0.4206, allocations: 41.69 kB / 0.5347 GB, free: 10.58 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.971e-05/0.4206, allocations: 36.03 kB / 0.5348 GB, free: 10.56 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.794e-05/0.4207, allocations: 3.938 kB / 0.5348 GB, free: 10.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.4207, allocations: 31.94 kB / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.061e-06/0.4207, allocations: 0 / 0.5348 GB, free: 10.52 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002488/0.421, allocations: 74.5 kB / 0.5349 GB, free: 10.46 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.421, allocations: 56.78 kB / 0.5349 GB, free: 10.4 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.799e-05/0.4211, allocations: 115.5 kB / 0.535 GB, free: 10.29 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.4211, allocations: 25.7 kB / 0.5351 GB, free: 10.25 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.555e-05/0.4212, allocations: 137.8 kB / 0.5352 GB, free: 10.12 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.187e-05/0.4212, allocations: 13.23 kB / 0.5352 GB, free: 10.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.772e-05/0.4213, allocations: 21.83 kB / 0.5352 GB, free: 10.09 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001002/0.4214, allocations: 312.2 kB / 0.5355 GB, free: 9.773 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.699e-05/0.4214, allocations: 22.8 kB / 0.5355 GB, free: 9.758 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.172e-05/0.4215, allocations: 6.875 kB / 0.5355 GB, free: 9.758 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.635e-05/0.4216, allocations: 33.34 kB / 0.5356 GB, free: 9.738 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.724e-06/0.4216, allocations: 0 / 0.5356 GB, free: 9.738 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001235/0.4217, allocations: 68.36 kB / 0.5356 GB, free: 9.688 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.64e-05/0.4217, allocations: 4.75 kB / 0.5356 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.989e-06/0.4217, allocations: 1.094 kB / 0.5356 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.4217, allocations: 0 / 0.5356 GB, free: 9.688 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.214e-05/0.4218, allocations: 12.91 kB / 0.5357 GB, free: 9.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.374e-06/0.4218, allocations: 11.88 kB / 0.5357 GB, free: 9.672 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.965e-05/0.4219, allocations: 6.234 kB / 0.5357 GB, free: 9.668 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.4219, allocations: 1.156 kB / 0.5357 GB, free: 9.668 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.0001016/0.422, allocations: 134.9 kB / 0.5358 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.55e-05/0.422, allocations: 10.14 kB / 0.5358 GB, free: 9.531 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.415e-05/0.4221, allocations: 13.02 kB / 0.5358 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.312e-06/0.4221, allocations: 1.156 kB / 0.5358 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.4221, allocations: 1.031 kB / 0.5358 GB, free: 9.52 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.4221, allocations: 4 kB / 0.5358 GB, free: 9.516 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000351/0.4224, allocations: 363.2 kB / 0.5362 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.884e-06/0.4225, allocations: 1.125 kB / 0.5362 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.941e-05/0.4225, allocations: 12.27 kB / 0.5362 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.4225, allocations: 0 / 0.5362 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.763e-06/0.4225, allocations: 1.406 kB / 0.5362 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.4225, allocations: 0 / 0.5362 GB, free: 9.156 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.4225, allocations: 5.125 kB / 0.5362 GB, free: 9.152 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001562/0.4227, allocations: 170.6 kB / 0.5364 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.854e-05/0.4228, allocations: 78.45 kB / 0.5364 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.285e-05/0.4228, allocations: 0 / 0.5364 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.304e-05/0.4228, allocations: 2.219 kB / 0.5364 GB, free: 8.898 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.884e-05/0.4229, allocations: 6.078 kB / 0.5364 GB, free: 8.895 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.944e-06/0.4229, allocations: 9.062 kB / 0.5365 GB, free: 8.887 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.523e-05/0.4229, allocations: 85.48 kB / 0.5365 GB, free: 8.809 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.4229, allocations: 0 / 0.5365 GB, free: 8.809 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002369/0.4232, allocations: 33.47 kB / 0.5366 GB, free: 8.789 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 0.0001025/0.4233, allocations: 94.39 kB / 0.5367 GB, free: 8.699 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001544/0.4234, allocations: 32.33 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.916e-06/0.4235, allocations: 1.188 kB / 0.5367 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.589e-05/0.4235, allocations: 22.8 kB / 0.5367 GB, free: 8.676 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000301/0.4238, allocations: 14.16 kB / 0.5367 GB, free: 8.668 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005084/0.4243, allocations: 262.4 kB / 0.537 GB, free: 8.473 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000297/0.4246, allocations: 0.7289 MB / 0.5377 GB, free: 7.75 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 4.143e-05/0.4247, allocations: 7.156 kB / 0.5377 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.755e-05/0.4247, allocations: 9.719 kB / 0.5377 GB, free: 7.738 MB / 398.1 MB Notification: Performance of SimCode: time 1.814e-06/0.4247, allocations: 0 / 0.5377 GB, free: 7.738 MB / 398.1 MB Notification: Performance of Templates: time 0.003116/0.4278, allocations: 0.6291 MB / 0.5383 GB, free: 7.418 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