Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.conf.json 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/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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_3.2.3_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_3.2.3_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 108.6 kB / 17.03 MB, free: 5.664 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00118/0.00118, allocations: 190.9 kB / 17.96 MB, free: 5.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.371/1.371, allocations: 205.1 MB / 223.8 MB, free: 12.26 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.2349/0.2349, allocations: 43.52 MB / 314.7 MB, free: 480 kB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00143/0.00143, allocations: 67.52 kB / 384.2 MB, free: 56.42 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0976/0.09904, allocations: 57.79 MB / 442 MB, free: 6.152 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002263/0.1013, allocations: 1.536 MB / 443.5 MB, free: 4.602 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001148/0.1015, allocations: 51.78 kB / 443.5 MB, free: 4.551 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.634e-05/0.1015, allocations: 4 kB / 443.5 MB, free: 4.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.1017, allocations: 19.84 kB / 443.6 MB, free: 4.527 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.15e-05/0.1017, allocations: 7.922 kB / 443.6 MB, free: 4.52 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.46e-05/0.1018, allocations: 23.97 kB / 443.6 MB, free: 4.496 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.587e-05/0.1019, allocations: 71.83 kB / 443.7 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002283/0.1021, allocations: 119.4 kB / 443.8 MB, free: 4.301 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.868e-05/0.1022, allocations: 39.91 kB / 443.8 MB, free: 4.262 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.125e-05/0.1022, allocations: 43.78 kB / 443.9 MB, free: 4.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.048e-05/0.1023, allocations: 8 kB / 443.9 MB, free: 4.211 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.277e-05/0.1023, allocations: 8 kB / 443.9 MB, free: 4.203 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.868e-05/0.1023, allocations: 70.11 kB / 443.9 MB, free: 4.137 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.448e-05/0.1024, allocations: 71.55 kB / 444 MB, free: 4.066 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001612/0.1026, allocations: 151.3 kB / 444.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.1026, allocations: 0 / 444.2 MB, free: 3.918 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.1026, allocations: 4 kB / 444.2 MB, free: 3.914 MB / 318.1 MB Notification: Performance of Transformations before backend: time 6.212e-06/0.1026, allocations: 4 kB / 444.2 MB, free: 3.91 MB / 318.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.0003986/0.103, allocations: 439.4 kB / 444.6 MB, free: 3.434 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.281e-05/0.1031, allocations: 11.89 kB / 444.6 MB, free: 3.422 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.006e-05/0.1031, allocations: 24.73 kB / 444.6 MB, free: 3.398 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001809/0.1033, allocations: 204.2 kB / 444.8 MB, free: 3.16 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.257e-05/0.1033, allocations: 20.75 kB / 444.9 MB, free: 3.141 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.402e-05/0.1033, allocations: 16.38 kB / 444.9 MB, free: 3.125 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002593/0.1036, allocations: 197.1 kB / 445.1 MB, free: 2.926 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.01e-05/0.1036, allocations: 3.938 kB / 445.1 MB, free: 2.922 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.554e-05/0.1036, allocations: 12 kB / 445.1 MB, free: 2.91 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.1037, allocations: 4 kB / 445.1 MB, free: 2.906 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000171/0.1038, allocations: 131 kB / 445.2 MB, free: 2.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004595/0.1043, allocations: 495.8 kB / 445.7 MB, free: 2.246 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.568e-05/0.1044, allocations: 46.5 kB / 445.7 MB, free: 2.191 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.196e-05/0.1044, allocations: 32.91 kB / 445.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.657e-06/0.1045, allocations: 0 / 445.8 MB, free: 2.156 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.183e-05/0.1045, allocations: 30.56 kB / 445.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 9.52e-07/0.1045, allocations: 0 / 445.8 MB, free: 2.117 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002114/0.1047, allocations: 81.58 kB / 445.9 MB, free: 2.031 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.815e-05/0.1047, allocations: 51.41 kB / 445.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.297e-05/0.1048, allocations: 109.8 kB / 446 MB, free: 1.852 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.542e-06/0.1048, allocations: 25.7 kB / 446.1 MB, free: 1.82 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.221e-05/0.1049, allocations: 135.9 kB / 446.2 MB, free: 1.684 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.629e-05/0.1049, allocations: 15.81 kB / 446.2 MB, free: 1.668 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.52e-05/0.1049, allocations: 17.66 kB / 446.2 MB, free: 1.645 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.105, allocations: 322.8 kB / 446.5 MB, free: 1.32 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.575e-05/0.105, allocations: 8 kB / 446.6 MB, free: 1.312 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.671e-05/0.105, allocations: 19.92 kB / 446.6 MB, free: 1.293 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.851e-05/0.1051, allocations: 28.84 kB / 446.6 MB, free: 1.262 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1051, allocations: 4 kB / 446.6 MB, free: 1.258 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.041e-05/0.1052, allocations: 65.53 kB / 446.7 MB, free: 1.188 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1052, allocations: 5.25 kB / 446.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.42e-06/0.1052, allocations: 0 / 446.7 MB, free: 1.184 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.695e-05/0.1053, allocations: 12.42 kB / 446.7 MB, free: 1.172 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.249e-05/0.1053, allocations: 15.88 kB / 446.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.819e-06/0.1053, allocations: 0 / 446.7 MB, free: 1.156 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.253e-05/0.1054, allocations: 4 kB / 446.7 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.212e-06/0.1054, allocations: 0 / 446.7 MB, free: 1.152 MB / 318.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 6.819e-05/0.1055, allocations: 141.8 kB / 446.8 MB, free: 1.004 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.294e-05/0.1055, allocations: 3.938 kB / 446.8 MB, free: 1 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.099e-05/0.1055, allocations: 11.97 kB / 446.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.803e-06/0.1055, allocations: 0 / 446.9 MB, free: 0.9883 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.977e-06/0.1055, allocations: 4 kB / 446.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.1055, allocations: 0 / 446.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002515/0.1058, allocations: 370.3 kB / 447.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1058, allocations: 0 / 447.2 MB, free: 0.5664 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.545e-05/0.1058, allocations: 8 kB / 447.2 MB, free: 0.5586 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.683e-06/0.1059, allocations: 4 kB / 447.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.111e-06/0.1059, allocations: 0 / 447.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.152e-06/0.1059, allocations: 0 / 447.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1059, allocations: 0 / 447.2 MB, free: 0.5547 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001044/0.106, allocations: 163.5 kB / 447.4 MB, free: 388 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.743e-05/0.106, allocations: 85.02 kB / 447.5 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.078e-05/0.106, allocations: 0 / 447.5 MB, free: 284 kB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.097e-05/0.1061, allocations: 11.92 kB / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.661e-05/0.1061, allocations: 0 / 447.5 MB, free: 272 kB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.446e-06/0.1061, allocations: 4 kB / 447.5 MB, free: 268 kB / 318.1 MB Notification: Performance of sorting global known variables: time 2.522e-05/0.1062, allocations: 87.27 kB / 447.6 MB, free: 180 kB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1062, allocations: 4 kB / 447.6 MB, free: 176 kB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002208/0.1064, allocations: 23.84 kB / 447.6 MB, free: 152 kB / 318.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.0001157/0.1065, allocations: 91.25 kB / 447.7 MB, free: 48 kB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001259/0.1066, allocations: 35.92 kB / 447.7 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.575e-06/0.1066, allocations: 0 / 447.7 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001107/0.1068, allocations: 27.91 kB / 447.8 MB, free: 15.98 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002984/0.1071, allocations: 12.86 kB / 447.8 MB, free: 15.97 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004919/0.1076, allocations: 275.3 kB / 448 MB, free: 15.68 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003416/0.1079, allocations: 0.7275 MB / 448.8 MB, free: 14.93 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 3.051e-05/0.108, allocations: 4 kB / 448.8 MB, free: 14.92 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.552e-05/0.108, allocations: 11.44 kB / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of SimCode: time 2.21e-07/0.108, allocations: 0 / 448.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of Templates: time 0.0029/0.1109, allocations: 0.6674 MB / 449.4 MB, free: 14.25 MB / 334.1 MB make -j1 -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Blocks/MuxDemux/MuxDemux.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_3.2.3_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches