Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_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_cpp_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_cpp_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.000981/0.000981, allocations: 202.1 kB / 15.8 MB, free: 6.332 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.291/1.291, allocations: 226.6 MB / 243.1 MB, free: 12.55 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008034/0.0008034, allocations: 97.25 kB / 295.1 MB, free: 4.445 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.1783/0.1783, allocations: 44.84 MB / 392 MB, free: 11.39 MB / 330.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002609/0.000261, allocations: 8 kB / 464.7 MB, free: 68.11 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08526/0.08554, allocations: 62.95 MB / 0.5153 GB, free: 5.148 MB / 346.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.001274/0.08685, allocations: 1.257 MB / 0.5165 GB, free: 3.871 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0001331/0.087, allocations: 47.83 kB / 0.5166 GB, free: 3.824 MB / 346.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.443e-05/0.08707, allocations: 7.938 kB / 0.5166 GB, free: 3.816 MB / 346.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001081/0.08719, allocations: 11.92 kB / 0.5166 GB, free: 3.805 MB / 346.7 MB Notification: Performance of NFTyping.typeBindings: time 2.367e-05/0.08722, allocations: 3.938 kB / 0.5166 GB, free: 3.801 MB / 346.7 MB Notification: Performance of NFTyping.typeClassSections: time 7.541e-05/0.0873, allocations: 19.92 kB / 0.5166 GB, free: 3.781 MB / 346.7 MB Notification: Performance of NFFlatten.flatten: time 7.515e-05/0.08738, allocations: 75.7 kB / 0.5167 GB, free: 3.707 MB / 346.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001861/0.08757, allocations: 101.9 kB / 0.5168 GB, free: 3.605 MB / 346.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.977e-05/0.08761, allocations: 11.92 kB / 0.5168 GB, free: 3.594 MB / 346.7 MB Notification: Performance of NFSimplifyModel.simplify: time 3.74e-05/0.08765, allocations: 15.88 kB / 0.5168 GB, free: 3.578 MB / 346.7 MB Notification: Performance of NFPackage.collectConstants: time 1.805e-05/0.08768, allocations: 4 kB / 0.5168 GB, free: 3.574 MB / 346.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.096e-05/0.08769, allocations: 0 / 0.5168 GB, free: 3.574 MB / 346.7 MB Notification: Performance of NFScalarize.scalarize: time 5.039e-05/0.08775, allocations: 59.88 kB / 0.5169 GB, free: 3.516 MB / 346.7 MB Notification: Performance of NFVerifyModel.verify: time 2.852e-05/0.08779, allocations: 41.64 kB / 0.5169 GB, free: 3.469 MB / 346.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001094/0.0879, allocations: 91.83 kB / 0.517 GB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.891e-06/0.08792, allocations: 0 / 0.517 GB, free: 3.379 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.08792, allocations: 0 / 0.517 GB, free: 3.379 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.631e-06/0.08794, allocations: 4 kB / 0.517 GB, free: 3.375 MB / 346.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.0003369/0.08828, allocations: 415.6 kB / 0.5174 GB, free: 2.918 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.204e-05/0.08832, allocations: 12.03 kB / 0.5174 GB, free: 2.906 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.968e-05/0.08836, allocations: 23.72 kB / 0.5174 GB, free: 2.883 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001432/0.08851, allocations: 210.8 kB / 0.5176 GB, free: 2.637 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.54e-05/0.08853, allocations: 12.38 kB / 0.5177 GB, free: 2.625 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.169e-05/0.08856, allocations: 16 kB / 0.5177 GB, free: 2.609 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002831/0.08885, allocations: 196.6 kB / 0.5179 GB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.388e-06/0.08887, allocations: 0 / 0.5179 GB, free: 2.414 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.551e-05/0.08889, allocations: 4 kB / 0.5179 GB, free: 2.41 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.933e-06/0.0889, allocations: 7.984 kB / 0.5179 GB, free: 2.402 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001795/0.08909, allocations: 135.7 kB / 0.518 GB, free: 2.27 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004717/0.08957, allocations: 0.4919 MB / 0.5185 GB, free: 1.727 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 7.454e-05/0.08965, allocations: 42.56 kB / 0.5185 GB, free: 1.676 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.395e-05/0.08971, allocations: 32.97 kB / 0.5186 GB, free: 1.641 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.074e-05/0.08973, allocations: 7.938 kB / 0.5186 GB, free: 1.633 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.392e-05/0.08975, allocations: 34.56 kB / 0.5186 GB, free: 1.59 MB / 346.7 MB Notification: Performance of pre-optimization done (n=5): time 1.423e-06/0.08976, allocations: 0 / 0.5186 GB, free: 1.59 MB / 346.7 MB Notification: Performance of matching and sorting (n=5): time 0.0001931/0.08995, allocations: 81.58 kB / 0.5187 GB, free: 1.504 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.307e-05/0.08999, allocations: 59.41 kB / 0.5187 GB, free: 1.434 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.709e-05/0.09005, allocations: 105.8 kB / 0.5188 GB, free: 1.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 6.803e-06/0.09006, allocations: 25.7 kB / 0.5189 GB, free: 1.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.7e-05/0.09011, allocations: 135.9 kB / 0.519 GB, free: 1.152 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.713e-05/0.09013, allocations: 19.73 kB / 0.519 GB, free: 1.133 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.786e-06/0.09014, allocations: 4 kB / 0.519 GB, free: 1.129 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 3.941e-05/0.09018, allocations: 318.8 kB / 0.5193 GB, free: 0.8086 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.771e-05/0.09022, allocations: 15.98 kB / 0.5193 GB, free: 0.793 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.072e-05/0.09026, allocations: 15.94 kB / 0.5193 GB, free: 0.7773 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.843e-05/0.0903, allocations: 19.92 kB / 0.5194 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.09033, allocations: 0 / 0.5194 GB, free: 0.7578 MB / 346.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001024/0.09044, allocations: 65.69 kB / 0.5194 GB, free: 0.6875 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.393e-05/0.09046, allocations: 11.94 kB / 0.5194 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.899e-06/0.09047, allocations: 0 / 0.5194 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.1e-05/0.09049, allocations: 0 / 0.5194 GB, free: 0.6758 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.635e-05/0.09056, allocations: 11.98 kB / 0.5194 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.989e-06/0.09057, allocations: 320 / 0.5194 GB, free: 0.6641 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.416e-05/0.0906, allocations: 4 kB / 0.5195 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.809e-06/0.09061, allocations: 0 / 0.5195 GB, free: 0.6602 MB / 346.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.513e-05/0.09068, allocations: 150.2 kB / 0.5196 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.207e-05/0.0907, allocations: 3.906 kB / 0.5196 GB, free: 0.5 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.665e-05/0.09073, allocations: 7.969 kB / 0.5196 GB, free: 0.4961 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.843e-06/0.09073, allocations: 4 kB / 0.5196 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.09074, allocations: 0 / 0.5196 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.334e-06/0.09075, allocations: 0 / 0.5196 GB, free: 0.4922 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002442/0.09099, allocations: 358.5 kB / 0.52 GB, free: 88 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.09101, allocations: 4 kB / 0.52 GB, free: 84 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.954e-05/0.09105, allocations: 15.92 kB / 0.52 GB, free: 68 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.865e-06/0.09106, allocations: 4 kB / 0.52 GB, free: 64 kB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.941e-06/0.09107, allocations: 0.5 kB / 0.52 GB, free: 64 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.09108, allocations: 3.984 kB / 0.52 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.09108, allocations: 0 / 0.52 GB, free: 60 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00016/0.09125, allocations: 179.4 kB / 0.5202 GB, free: 15.87 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.142e-05/0.09129, allocations: 77.11 kB / 0.5202 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.828e-06/0.0913, allocations: 0 / 0.5202 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.962e-05/0.09136, allocations: 4 kB / 0.5202 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.752e-05/0.09139, allocations: 3.984 kB / 0.5202 GB, free: 15.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.817e-06/0.0914, allocations: 4 kB / 0.5202 GB, free: 15.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 3.75e-05/0.09144, allocations: 83.28 kB / 0.5203 GB, free: 15.68 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.11e-07/0.09145, allocations: 0 / 0.5203 GB, free: 15.68 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002007/0.09165, allocations: 31.69 kB / 0.5203 GB, free: 15.65 MB / 362.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 8.409e-05/0.09174, allocations: 99.19 kB / 0.5204 GB, free: 15.54 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.000117/0.09187, allocations: 35.97 kB / 0.5205 GB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.613e-06/0.09188, allocations: 0 / 0.5205 GB, free: 15.5 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.76e-05/0.09193, allocations: 20 kB / 0.5205 GB, free: 15.48 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002367/0.09217, allocations: 23.88 kB / 0.5205 GB, free: 15.46 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004804/0.09266, allocations: 352.3 kB / 0.5209 GB, free: 15.09 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002806/0.09295, allocations: 0.7291 MB / 0.5216 GB, free: 14.33 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.367e-05/0.09299, allocations: 11.44 kB / 0.5216 GB, free: 14.32 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.09299, allocations: 0 / 0.5216 GB, free: 14.32 MB / 362.7 MB Notification: Performance of Templates: time 0.002264/0.09526, allocations: 1.209 MB / 0.5228 GB, free: 13.11 MB / 362.7 MB make -j1 -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux --alarm=480 -emit_protected > ModelicaTest_trunk_cpp_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_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_cpp_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches