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/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/ModelicaServices 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 ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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) 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/Complex 4.0.0+maint.om/package.mo): time 0.0008109/0.0008109, allocations: 182.6 kB / 18.09 MB, free: 3.734 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.15/1.15, allocations: 223.3 MB / 242.1 MB, free: 11.71 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007632/0.0007633, allocations: 94.41 kB / 293.3 MB, free: 10.77 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2612/0.2612, allocations: 44.15 MB / 388.5 MB, free: 38.97 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000333/0.000333, allocations: 12 kB / 461.1 MB, free: 1.562 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2545/0.2548, allocations: 61.88 MB / 0.5107 GB, free: 38.12 MB / 378.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08999/0.3448, allocations: 86 MB / 0.5947 GB, free: 9.102 MB / 410.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001722/0.3451, allocations: 59.97 kB / 0.5948 GB, free: 9.047 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003262/0.3483, allocations: 1.5 MB / 0.5962 GB, free: 7.543 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3484, allocations: 0 / 0.5962 GB, free: 7.543 MB / 410.7 MB Notification: Performance of Transformations before backend: time 1.055e-05/0.3484, allocations: 7.938 kB / 0.5962 GB, free: 7.535 MB / 410.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.0003435/0.3487, allocations: 403.7 kB / 0.5966 GB, free: 7.09 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.744e-05/0.3488, allocations: 8.031 kB / 0.5966 GB, free: 7.082 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.38e-05/0.3488, allocations: 24.69 kB / 0.5966 GB, free: 7.059 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001971/0.349, allocations: 220 kB / 0.5969 GB, free: 6.805 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.349, allocations: 20.75 kB / 0.5969 GB, free: 6.785 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.316e-05/0.3491, allocations: 16.38 kB / 0.5969 GB, free: 6.77 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003029/0.3494, allocations: 200.6 kB / 0.5971 GB, free: 6.57 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.538e-06/0.3494, allocations: 0 / 0.5971 GB, free: 6.57 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.759e-05/0.3494, allocations: 8 kB / 0.5971 GB, free: 6.562 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.3494, allocations: 4 kB / 0.5971 GB, free: 6.559 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002054/0.3497, allocations: 127.7 kB / 0.5972 GB, free: 6.434 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005484/0.3502, allocations: 0.4919 MB / 0.5977 GB, free: 5.891 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 8.394e-05/0.3503, allocations: 58.28 kB / 0.5978 GB, free: 5.828 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.793e-05/0.3504, allocations: 28.97 kB / 0.5978 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.771e-06/0.3504, allocations: 0 / 0.5978 GB, free: 5.797 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.88e-05/0.3504, allocations: 34.5 kB / 0.5978 GB, free: 5.754 MB / 410.7 MB Notification: Performance of pre-optimization done (n=5): time 9.12e-07/0.3504, allocations: 0 / 0.5978 GB, free: 5.754 MB / 410.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002037/0.3506, allocations: 85.58 kB / 0.5979 GB, free: 5.664 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.622e-05/0.3507, allocations: 55.41 kB / 0.5979 GB, free: 5.598 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.371e-05/0.3507, allocations: 105.8 kB / 0.598 GB, free: 5.484 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 8.886e-06/0.3507, allocations: 25.7 kB / 0.5981 GB, free: 5.453 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.707e-05/0.3508, allocations: 135.9 kB / 0.5982 GB, free: 5.316 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.797e-05/0.3508, allocations: 23.78 kB / 0.5982 GB, free: 5.293 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.294e-06/0.3508, allocations: 0 / 0.5982 GB, free: 5.293 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.387e-05/0.3509, allocations: 310.8 kB / 0.5985 GB, free: 4.98 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.983e-05/0.351, allocations: 27.92 kB / 0.5985 GB, free: 4.953 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.849e-05/0.351, allocations: 8 kB / 0.5986 GB, free: 4.945 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.199e-05/0.3511, allocations: 45.16 kB / 0.5986 GB, free: 4.898 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.402e-06/0.3511, allocations: 0 / 0.5986 GB, free: 4.898 MB / 410.7 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001069/0.3512, allocations: 73.61 kB / 0.5987 GB, free: 4.82 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.16e-05/0.3512, allocations: 4 kB / 0.5987 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.706e-06/0.3512, allocations: 0 / 0.5987 GB, free: 4.816 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.051e-05/0.3512, allocations: 4 kB / 0.5987 GB, free: 4.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.841e-05/0.3513, allocations: 8 kB / 0.5987 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.3513, allocations: 0 / 0.5987 GB, free: 4.805 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.52e-05/0.3514, allocations: 7.906 kB / 0.5987 GB, free: 4.797 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.668e-06/0.3514, allocations: 0 / 0.5987 GB, free: 4.797 MB / 410.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 8.335e-05/0.3515, allocations: 141.7 kB / 0.5988 GB, free: 4.648 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.319e-05/0.3515, allocations: 11.98 kB / 0.5988 GB, free: 4.637 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.031e-05/0.3515, allocations: 7.969 kB / 0.5988 GB, free: 4.629 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.553e-06/0.3515, allocations: 0 / 0.5988 GB, free: 4.629 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.216e-06/0.3515, allocations: 3.938 kB / 0.5989 GB, free: 4.625 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.546e-06/0.3515, allocations: 7.984 kB / 0.5989 GB, free: 4.617 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003198/0.3519, allocations: 362.5 kB / 0.5992 GB, free: 4.207 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-06/0.3519, allocations: 4 kB / 0.5992 GB, free: 4.203 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.018e-05/0.3519, allocations: 11.94 kB / 0.5992 GB, free: 4.191 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.737e-06/0.3519, allocations: 3.984 kB / 0.5992 GB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.32e-06/0.3519, allocations: 0 / 0.5992 GB, free: 4.188 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3519, allocations: 4 kB / 0.5992 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.61e-07/0.3519, allocations: 0 / 0.5992 GB, free: 4.184 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001352/0.3521, allocations: 167.4 kB / 0.5994 GB, free: 4.004 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.843e-05/0.3521, allocations: 81.11 kB / 0.5995 GB, free: 3.906 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.119e-05/0.3521, allocations: 4.172 kB / 0.5995 GB, free: 3.902 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.869e-05/0.3522, allocations: 8 kB / 0.5995 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.27e-05/0.3522, allocations: 0 / 0.5995 GB, free: 3.895 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.605e-06/0.3522, allocations: 0 / 0.5995 GB, free: 3.895 MB / 410.7 MB Notification: Performance of sorting global known variables: time 3.901e-05/0.3523, allocations: 91.27 kB / 0.5996 GB, free: 3.805 MB / 410.7 MB Notification: Performance of sort global known variables: time 2e-07/0.3523, allocations: 0 / 0.5996 GB, free: 3.805 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.0002021/0.3525, allocations: 23.75 kB / 0.5996 GB, free: 3.781 MB / 410.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 7.252e-05/0.3526, allocations: 111.1 kB / 0.5997 GB, free: 3.66 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.000118/0.3527, allocations: 31.98 kB / 0.5997 GB, free: 3.629 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.703e-06/0.3527, allocations: 3.938 kB / 0.5997 GB, free: 3.625 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 4.388e-05/0.3527, allocations: 19.98 kB / 0.5997 GB, free: 3.605 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002144/0.353, allocations: 8.547 kB / 0.5998 GB, free: 3.598 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004535/0.3534, allocations: 330.5 kB / 0.6001 GB, free: 3.246 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002336/0.3537, allocations: 0.7277 MB / 0.6008 GB, free: 2.492 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.583e-05/0.3537, allocations: 4 kB / 0.6008 GB, free: 2.488 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.794e-05/0.3537, allocations: 11.44 kB / 0.6008 GB, free: 2.48 MB / 410.7 MB Notification: Performance of SimCode: time 2.1e-07/0.3537, allocations: 0 / 0.6008 GB, free: 2.48 MB / 410.7 MB Notification: Performance of Templates: time 0.002243/0.356, allocations: 0.6065 MB / 0.6014 GB, free: 1.883 MB / 410.7 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches