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/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/ModelicaServices 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 ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex trunk/package.mo): time 0.001141/0.001141, allocations: 207.3 kB / 17.99 MB, free: 3.777 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.29/1.29, allocations: 226.7 MB / 245.5 MB, free: 6.98 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001055/0.001055, allocations: 110 kB / 296.7 MB, free: 6.488 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3413/0.3413, allocations: 44.83 MB / 392.7 MB, free: 34.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.001267/0.001267, allocations: 63.89 kB / 465.5 MB, free: 12.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3736/0.3749, allocations: 62.01 MB / 0.5151 GB, free: 37.8 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.00256/0.3775, allocations: 1.619 MB / 0.5167 GB, free: 36.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001318/0.3777, allocations: 50.72 kB / 0.5168 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.014e-05/0.3778, allocations: 2.844 kB / 0.5168 GB, free: 36.62 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001421/0.3779, allocations: 14.55 kB / 0.5168 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 2.349e-05/0.3779, allocations: 6.781 kB / 0.5168 GB, free: 36.61 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.455e-05/0.378, allocations: 14.64 kB / 0.5168 GB, free: 36.6 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 8.983e-05/0.3781, allocations: 69.34 kB / 0.5169 GB, free: 36.58 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002582/0.3784, allocations: 133.4 kB / 0.517 GB, free: 36.52 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 3.932e-05/0.3784, allocations: 34.61 kB / 0.517 GB, free: 36.5 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.993e-05/0.3785, allocations: 41.25 kB / 0.5171 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.43e-05/0.3785, allocations: 8.062 kB / 0.5171 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.796e-05/0.3786, allocations: 5.781 kB / 0.5171 GB, free: 36.48 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 7.171e-05/0.3786, allocations: 67.39 kB / 0.5172 GB, free: 36.46 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.586e-05/0.3787, allocations: 57.44 kB / 0.5172 GB, free: 36.42 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001304/0.3788, allocations: 130.3 kB / 0.5173 GB, free: 36.37 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.3788, allocations: 0 / 0.5173 GB, free: 36.37 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.3788, allocations: 0 / 0.5173 GB, free: 36.37 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.148e-06/0.3789, allocations: 4 kB / 0.5173 GB, free: 36.36 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.0004519/0.3793, allocations: 446.3 kB / 0.5178 GB, free: 35.95 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.14e-05/0.3794, allocations: 8.562 kB / 0.5178 GB, free: 35.95 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.602e-05/0.3794, allocations: 17.47 kB / 0.5178 GB, free: 35.94 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002021/0.3796, allocations: 213.6 kB / 0.518 GB, free: 35.73 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.616e-05/0.3796, allocations: 14.56 kB / 0.518 GB, free: 35.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.323e-05/0.3797, allocations: 18.97 kB / 0.518 GB, free: 35.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002915/0.38, allocations: 196.4 kB / 0.5182 GB, free: 35.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.38, allocations: 3.938 kB / 0.5182 GB, free: 35.62 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.848e-05/0.38, allocations: 18.97 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.364e-06/0.38, allocations: 3.969 kB / 0.5182 GB, free: 35.61 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001851/0.3802, allocations: 119.8 kB / 0.5184 GB, free: 35.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005111/0.3807, allocations: 0.4959 MB / 0.5188 GB, free: 35.21 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.598e-05/0.3808, allocations: 43.69 kB / 0.5189 GB, free: 35.18 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.744e-05/0.3809, allocations: 30.59 kB / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.239e-05/0.3809, allocations: 0 / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.831e-05/0.3809, allocations: 34.5 kB / 0.5189 GB, free: 35.12 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 9.21e-07/0.3809, allocations: 3.938 kB / 0.5189 GB, free: 35.11 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002213/0.3812, allocations: 80.08 kB / 0.519 GB, free: 35.07 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.44e-05/0.3812, allocations: 51.41 kB / 0.5191 GB, free: 35 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.063e-05/0.3813, allocations: 109.4 kB / 0.5192 GB, free: 34.9 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 7.253e-06/0.3813, allocations: 25.7 kB / 0.5192 GB, free: 34.87 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.804e-05/0.3813, allocations: 139 kB / 0.5193 GB, free: 34.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.3814, allocations: 14.78 kB / 0.5193 GB, free: 34.74 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.981e-05/0.3814, allocations: 12.34 kB / 0.5194 GB, free: 34.72 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.636e-05/0.3815, allocations: 318.3 kB / 0.5197 GB, free: 34.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.883e-05/0.3815, allocations: 12.47 kB / 0.5197 GB, free: 34.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.059e-05/0.3816, allocations: 15.36 kB / 0.5197 GB, free: 34.4 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.64e-05/0.3816, allocations: 33.66 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.433e-06/0.3816, allocations: 0 / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.791e-05/0.3818, allocations: 72.58 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.324e-05/0.3818, allocations: 2.875 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.933e-06/0.3818, allocations: 6.625 kB / 0.5198 GB, free: 34.33 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.429e-05/0.3818, allocations: 4 kB / 0.5198 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.153e-05/0.3819, allocations: 11.56 kB / 0.5198 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.885e-06/0.3819, allocations: 0 / 0.5198 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.782e-05/0.3819, allocations: 10.47 kB / 0.5198 GB, free: 34.32 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.079e-06/0.3819, allocations: 0 / 0.5198 GB, free: 34.32 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.89e-05/0.382, allocations: 138.8 kB / 0.52 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.185e-05/0.3821, allocations: 6.875 kB / 0.52 GB, free: 34.19 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.888e-05/0.3821, allocations: 7.969 kB / 0.52 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.3821, allocations: 0 / 0.52 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.3821, allocations: 7.375 kB / 0.52 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.865e-06/0.3821, allocations: 2.938 kB / 0.52 GB, free: 34.18 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002706/0.3824, allocations: 362 kB / 0.5203 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3824, allocations: 0 / 0.5203 GB, free: 33.85 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.3824, allocations: 14.88 kB / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.533e-06/0.3824, allocations: 0 / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.374e-06/0.3825, allocations: 3.094 kB / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.112e-06/0.3825, allocations: 0 / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.3825, allocations: 4 kB / 0.5203 GB, free: 33.84 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002844/0.3828, allocations: 0.7198 MB / 0.521 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.096e-05/0.3828, allocations: 80.44 kB / 0.5211 GB, free: 33.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.121e-05/0.3828, allocations: 3.938 kB / 0.5211 GB, free: 33.01 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.419e-05/0.3829, allocations: 10.66 kB / 0.5211 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.539e-05/0.3829, allocations: 9.859 kB / 0.5211 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.555e-06/0.3829, allocations: 0 / 0.5211 GB, free: 33 MB / 378.7 MB Notification: Performance of sorting global known variables: time 2.565e-05/0.3829, allocations: 86.88 kB / 0.5212 GB, free: 32.92 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.01e-07/0.383, allocations: 0 / 0.5212 GB, free: 32.92 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003025/0.3833, allocations: 25.5 kB / 0.5213 GB, free: 32.91 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 8.503e-05/0.3833, allocations: 97.72 kB / 0.5213 GB, free: 32.82 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001289/0.3835, allocations: 39.22 kB / 0.5214 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3835, allocations: 4 kB / 0.5214 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 4.362e-05/0.3836, allocations: 14.7 kB / 0.5214 GB, free: 32.8 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003215/0.3839, allocations: 12.8 kB / 0.5214 GB, free: 32.79 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005106/0.3844, allocations: 439.1 kB / 0.5218 GB, free: 32.43 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001804/0.3846, allocations: 0.725 MB / 0.5225 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 3.501e-05/0.3846, allocations: 10.09 kB / 0.5226 GB, free: 31.73 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.998e-05/0.3847, allocations: 10.25 kB / 0.5226 GB, free: 31.72 MB / 378.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3847, allocations: 0 / 0.5226 GB, free: 31.72 MB / 378.7 MB Notification: Performance of Templates: time 0.002415/0.3871, allocations: 0.6466 MB / 0.5232 GB, free: 31.64 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@2/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