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/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 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 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) 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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001326/0.001326, allocations: 110.1 kB / 18.3 MB, free: 4.84 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.001302/0.001302, allocations: 199.3 kB / 19.23 MB, free: 3.914 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 222.9 MB / 242.9 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2166/0.2166, allocations: 44.18 MB / 337.3 MB, free: 2.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00123/0.00123, allocations: 63.61 kB / 409.1 MB, free: 27.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1368/0.1381, allocations: 60.82 MB / 469.9 MB, free: 14.39 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003245/0.1414, allocations: 1.542 MB / 471.5 MB, free: 12.84 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001711/0.1416, allocations: 43.84 kB / 471.5 MB, free: 12.8 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.378e-05/0.1416, allocations: 3.938 kB / 471.5 MB, free: 12.79 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000165/0.1418, allocations: 23.84 kB / 471.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.885e-05/0.1419, allocations: 3.938 kB / 471.5 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.908e-05/0.142, allocations: 19.97 kB / 471.6 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000145/0.1421, allocations: 75.78 kB / 471.6 MB, free: 12.67 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003334/0.1424, allocations: 123.4 kB / 471.8 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.822e-05/0.1425, allocations: 39.86 kB / 471.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.753e-05/0.1426, allocations: 43.84 kB / 471.8 MB, free: 12.46 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.59e-05/0.1426, allocations: 8 kB / 471.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.631e-05/0.1427, allocations: 8 kB / 471.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 8.572e-05/0.1427, allocations: 63.88 kB / 471.9 MB, free: 12.38 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.733e-05/0.1428, allocations: 67.61 kB / 472 MB, free: 12.32 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001795/0.143, allocations: 135.5 kB / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.549e-06/0.143, allocations: 0 / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.143, allocations: 0 / 472.1 MB, free: 12.18 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.885e-06/0.143, allocations: 0 / 472.1 MB, free: 12.18 MB / 350.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.0005352/0.1436, allocations: 447.7 kB / 472.5 MB, free: 11.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.074e-05/0.1436, allocations: 8.031 kB / 472.6 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.746e-05/0.1437, allocations: 16.75 kB / 472.6 MB, free: 11.68 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002277/0.1439, allocations: 228 kB / 472.8 MB, free: 11.41 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.822e-05/0.1439, allocations: 12.75 kB / 472.8 MB, free: 11.4 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.954e-05/0.144, allocations: 16.38 kB / 472.8 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003371/0.1443, allocations: 192.9 kB / 473 MB, free: 11.19 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1443, allocations: 7.875 kB / 473 MB, free: 11.18 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.093e-05/0.1444, allocations: 11.98 kB / 473 MB, free: 11.17 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.187e-06/0.1444, allocations: 8 kB / 473 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000218/0.1446, allocations: 123.3 kB / 473.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006636/0.1453, allocations: 495.8 kB / 473.6 MB, free: 10.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001004/0.1454, allocations: 46.56 kB / 473.7 MB, free: 10.46 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.537e-05/0.1455, allocations: 36.84 kB / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.233e-05/0.1455, allocations: 0 / 473.7 MB, free: 10.42 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.025e-05/0.1455, allocations: 34.5 kB / 473.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 9.62e-07/0.1455, allocations: 0 / 473.8 MB, free: 10.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002493/0.1458, allocations: 77.67 kB / 473.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.958e-05/0.1458, allocations: 55.41 kB / 473.9 MB, free: 10.23 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.84e-05/0.146, allocations: 109.8 kB / 474 MB, free: 10.11 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.505e-05/0.146, allocations: 25.7 kB / 474 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.884e-05/0.1461, allocations: 135.9 kB / 474.2 MB, free: 9.941 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.116e-05/0.1461, allocations: 23.73 kB / 474.2 MB, free: 9.918 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.331e-05/0.1462, allocations: 13.72 kB / 474.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001275/0.1463, allocations: 318.8 kB / 474.5 MB, free: 9.578 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.265e-05/0.1463, allocations: 8 kB / 474.5 MB, free: 9.57 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.004e-05/0.1464, allocations: 23.92 kB / 474.5 MB, free: 9.547 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.655e-05/0.1465, allocations: 32.84 kB / 474.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-06/0.1465, allocations: 0 / 474.6 MB, free: 9.512 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001279/0.1466, allocations: 65.53 kB / 474.6 MB, free: 9.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.1467, allocations: 4 kB / 474.6 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.1467, allocations: 4 kB / 474.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.471e-05/0.1467, allocations: 0 / 474.6 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.268e-05/0.1468, allocations: 11.98 kB / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1468, allocations: 0 / 474.6 MB, free: 9.422 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.428e-05/0.1468, allocations: 4 kB / 474.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.564e-06/0.1468, allocations: 4 kB / 474.7 MB, free: 9.414 MB / 350.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 0.0001096/0.1469, allocations: 137.8 kB / 474.8 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.714e-05/0.147, allocations: 11.84 kB / 474.8 MB, free: 9.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.293e-05/0.147, allocations: 7.969 kB / 474.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.734e-06/0.147, allocations: 0 / 474.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.739e-06/0.147, allocations: 0 / 474.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.147, allocations: 0 / 474.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003898/0.1474, allocations: 366.5 kB / 475.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.1474, allocations: 4.438 kB / 475.2 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.468e-05/0.1475, allocations: 11.98 kB / 475.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.866e-06/0.1475, allocations: 0 / 475.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.165e-05/0.1475, allocations: 4 kB / 475.2 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1475, allocations: 3.938 kB / 475.2 MB, free: 8.816 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.233e-06/0.1475, allocations: 3.938 kB / 475.2 MB, free: 8.812 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001819/0.1477, allocations: 167.5 kB / 475.4 MB, free: 8.633 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.307e-05/0.1478, allocations: 81.02 kB / 475.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.486e-05/0.1478, allocations: 4 kB / 475.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.014e-05/0.1478, allocations: 0 / 475.4 MB, free: 8.531 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.219e-05/0.1479, allocations: 7.984 kB / 475.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-06/0.1479, allocations: 0 / 475.4 MB, free: 8.523 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.631e-05/0.148, allocations: 87.58 kB / 475.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.763e-06/0.148, allocations: 0 / 475.5 MB, free: 8.438 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002344/0.1482, allocations: 39.62 kB / 475.6 MB, free: 8.398 MB / 350.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.0001016/0.1483, allocations: 91.25 kB / 475.7 MB, free: 8.297 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.1485, allocations: 39.91 kB / 475.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.1485, allocations: 0 / 475.7 MB, free: 8.258 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.983e-05/0.1485, allocations: 23.92 kB / 475.7 MB, free: 8.234 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003349/0.1489, allocations: 4 kB / 475.7 MB, free: 8.23 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006159/0.1495, allocations: 309.1 kB / 476 MB, free: 7.895 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003511/0.1499, allocations: 0.7275 MB / 476.8 MB, free: 7.141 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.668e-05/0.1499, allocations: 11.44 kB / 476.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of SimCode: time 4.81e-07/0.1499, allocations: 0 / 476.8 MB, free: 7.133 MB / 350.1 MB Notification: Performance of Templates: time 0.003152/0.1531, allocations: 1.248 MB / 478 MB, free: 5.891 MB / 350.1 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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches