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.00114/0.00114, allocations: 100.3 kB / 16.94 MB, free: 5.82 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.001292/0.001292, allocations: 187.3 kB / 17.86 MB, free: 5.172 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.578/1.578, allocations: 205.1 MB / 223.7 MB, free: 12.32 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.2079/0.2079, allocations: 43.52 MB / 314.6 MB, free: 0.543 MB / 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.001543/0.001543, allocations: 67.47 kB / 383.4 MB, free: 56.74 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1138, allocations: 57.78 MB / 441.2 MB, free: 6.938 MB / 318.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002364/0.1162, allocations: 1.539 MB / 442.7 MB, free: 5.379 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001193/0.1164, allocations: 55.77 kB / 442.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.369e-05/0.1164, allocations: 0 / 442.8 MB, free: 5.324 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001272/0.1166, allocations: 19.86 kB / 442.8 MB, free: 5.305 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 2.062e-05/0.1166, allocations: 3.938 kB / 442.8 MB, free: 5.301 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.41e-05/0.1167, allocations: 19.97 kB / 442.8 MB, free: 5.281 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 8.196e-05/0.1168, allocations: 75.81 kB / 442.9 MB, free: 5.207 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002441/0.117, allocations: 127.7 kB / 443 MB, free: 5.074 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.119e-05/0.1171, allocations: 31.92 kB / 443 MB, free: 5.043 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.836e-05/0.1171, allocations: 43.84 kB / 443.1 MB, free: 5 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.11e-05/0.1171, allocations: 8 kB / 443.1 MB, free: 4.992 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.53e-05/0.1172, allocations: 11.94 kB / 443.1 MB, free: 4.98 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 6.226e-05/0.1172, allocations: 71.8 kB / 443.2 MB, free: 4.91 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 5.577e-05/0.1173, allocations: 67.55 kB / 443.2 MB, free: 4.844 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001269/0.1174, allocations: 143.5 kB / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.929e-06/0.1174, allocations: 0 / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1174, allocations: 0 / 443.4 MB, free: 4.703 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.32e-06/0.1174, allocations: 0 / 443.4 MB, free: 4.703 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.0004083/0.1179, allocations: 439.5 kB / 443.8 MB, free: 4.227 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.362e-05/0.1179, allocations: 15.83 kB / 443.8 MB, free: 4.211 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.256e-05/0.1179, allocations: 20.73 kB / 443.8 MB, free: 4.191 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001496/0.1181, allocations: 216.2 kB / 444.1 MB, free: 3.941 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.454e-05/0.1181, allocations: 12.75 kB / 444.1 MB, free: 3.93 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.903e-05/0.1181, allocations: 20.38 kB / 444.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002642/0.1184, allocations: 193.1 kB / 444.3 MB, free: 3.715 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.048e-05/0.1184, allocations: 3.938 kB / 444.3 MB, free: 3.711 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1185, allocations: 8 kB / 444.3 MB, free: 3.703 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1185, allocations: 8 kB / 444.3 MB, free: 3.695 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001899/0.1187, allocations: 127 kB / 444.4 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004501/0.1191, allocations: 495.8 kB / 444.9 MB, free: 3.039 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.408e-05/0.1192, allocations: 46.5 kB / 445 MB, free: 2.984 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.349e-05/0.1193, allocations: 32.91 kB / 445 MB, free: 2.949 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.282e-05/0.1193, allocations: 3.984 kB / 445 MB, free: 2.945 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.771e-05/0.1193, allocations: 34.56 kB / 445 MB, free: 2.902 MB / 318.1 MB Notification: Performance of pre-optimization done (n=5): time 1.182e-06/0.1193, allocations: 0 / 445 MB, free: 2.902 MB / 318.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002015/0.1195, allocations: 81.58 kB / 445.1 MB, free: 2.816 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.55e-05/0.1196, allocations: 55.41 kB / 445.2 MB, free: 2.75 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.794e-05/0.1196, allocations: 105.8 kB / 445.3 MB, free: 2.637 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.476e-06/0.1196, allocations: 33.64 kB / 445.3 MB, free: 2.598 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.792e-05/0.1197, allocations: 135.9 kB / 445.4 MB, free: 2.461 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.852e-05/0.1197, allocations: 15.81 kB / 445.4 MB, free: 2.445 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-05/0.1197, allocations: 17.72 kB / 445.5 MB, free: 2.422 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.091e-05/0.1198, allocations: 314.8 kB / 445.8 MB, free: 2.105 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.765e-05/0.1198, allocations: 16 kB / 445.8 MB, free: 2.09 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.889e-05/0.1199, allocations: 11.98 kB / 445.8 MB, free: 2.078 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.353e-05/0.1199, allocations: 32.84 kB / 445.8 MB, free: 2.043 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1199, allocations: 0 / 445.8 MB, free: 2.043 MB / 318.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.83e-05/0.12, allocations: 69.47 kB / 445.9 MB, free: 1.969 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.156e-05/0.1201, allocations: 4 kB / 445.9 MB, free: 1.965 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.268e-06/0.1201, allocations: 4 kB / 445.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.423e-05/0.1201, allocations: 0 / 445.9 MB, free: 1.961 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.52e-05/0.1202, allocations: 19.92 kB / 445.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.548e-06/0.1202, allocations: 0 / 445.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.239e-05/0.1202, allocations: 0 / 445.9 MB, free: 1.941 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.384e-06/0.1202, allocations: 4 kB / 445.9 MB, free: 1.938 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 7.375e-05/0.1203, allocations: 141.7 kB / 446.1 MB, free: 1.789 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.451e-05/0.1203, allocations: 7.938 kB / 446.1 MB, free: 1.781 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.271e-05/0.1204, allocations: 7.969 kB / 446.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.332e-06/0.1204, allocations: 0 / 446.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.829e-06/0.1204, allocations: 0 / 446.1 MB, free: 1.773 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.375e-06/0.1204, allocations: 4 kB / 446.1 MB, free: 1.77 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002597/0.1206, allocations: 374.8 kB / 446.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.182e-06/0.1207, allocations: 0 / 446.4 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.602e-05/0.1207, allocations: 8 kB / 446.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.633e-06/0.1207, allocations: 0 / 446.5 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.312e-06/0.1207, allocations: 4 kB / 446.5 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.011e-06/0.1207, allocations: 0 / 446.5 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.1207, allocations: 0 / 446.5 MB, free: 1.336 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001079/0.1208, allocations: 171.4 kB / 446.6 MB, free: 1.152 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.897e-05/0.1209, allocations: 81.02 kB / 446.7 MB, free: 1.055 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.262e-05/0.1209, allocations: 4 kB / 446.7 MB, free: 1.051 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.24e-05/0.1209, allocations: 7.969 kB / 446.7 MB, free: 1.043 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.607e-05/0.121, allocations: 4 kB / 446.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.324e-06/0.121, allocations: 0 / 446.7 MB, free: 1.039 MB / 318.1 MB Notification: Performance of sorting global known variables: time 2.447e-05/0.121, allocations: 91.27 kB / 446.8 MB, free: 0.9492 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.121, allocations: 4 kB / 446.8 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002198/0.1212, allocations: 23.84 kB / 446.8 MB, free: 0.9219 MB / 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 8.239e-05/0.1213, allocations: 91.25 kB / 446.9 MB, free: 0.8203 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0001297/0.1215, allocations: 31.92 kB / 447 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.1215, allocations: 0 / 447 MB, free: 0.7891 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 4.071e-05/0.1215, allocations: 23.92 kB / 447 MB, free: 0.7656 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.1218, allocations: 16 kB / 447 MB, free: 0.75 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004131/0.1222, allocations: 309 kB / 447.3 MB, free: 428 kB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002372/0.1225, allocations: 0.7275 MB / 448 MB, free: 15.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.1225, allocations: 11.44 kB / 448 MB, free: 15.65 MB / 334.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1225, allocations: 0 / 448 MB, free: 15.65 MB / 334.1 MB Notification: Performance of Templates: time 0.002529/0.1251, allocations: 1.246 MB / 449.3 MB, free: 14.41 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 -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