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.001143/0.001144, allocations: 118.1 kB / 17.08 MB, free: 5.992 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.001275/0.001275, allocations: 196.2 kB / 18.01 MB, free: 5.07 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.378/1.378, allocations: 205.1 MB / 223.9 MB, free: 12.23 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.8 MB, free: 460 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.001406/0.001406, allocations: 69.47 kB / 442.5 MB, free: 5.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.119/0.1205, allocations: 57.78 MB / 0.4885 GB, free: 11.81 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.003245/0.1237, allocations: 1.558 MB / 0.49 GB, free: 10.25 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.000186/0.124, allocations: 47.84 kB / 0.4901 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.303e-05/0.1241, allocations: 0 / 0.4901 GB, free: 10.2 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000166/0.1242, allocations: 27.78 kB / 0.4901 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 3.27e-05/0.1243, allocations: 3.938 kB / 0.4901 GB, free: 10.17 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001077/0.1244, allocations: 23.97 kB / 0.4901 GB, free: 10.14 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001201/0.1246, allocations: 63.83 kB / 0.4902 GB, free: 10.08 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003211/0.1249, allocations: 139.3 kB / 0.4903 GB, free: 9.938 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.183e-05/0.125, allocations: 31.92 kB / 0.4904 GB, free: 9.906 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.675e-05/0.125, allocations: 43.78 kB / 0.4904 GB, free: 9.863 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 3.05e-05/0.1251, allocations: 8 kB / 0.4904 GB, free: 9.855 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.38e-05/0.1251, allocations: 8 kB / 0.4904 GB, free: 9.848 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001088/0.1252, allocations: 63.88 kB / 0.4905 GB, free: 9.785 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 9.447e-05/0.1253, allocations: 67.61 kB / 0.4906 GB, free: 9.719 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002144/0.1255, allocations: 151.4 kB / 0.4907 GB, free: 9.57 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.099e-06/0.1256, allocations: 4 kB / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1256, allocations: 0 / 0.4907 GB, free: 9.566 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.696e-06/0.1256, allocations: 0 / 0.4907 GB, free: 9.566 MB / 382.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.0006445/0.1262, allocations: 439.5 kB / 0.4911 GB, free: 9.09 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.323e-05/0.1263, allocations: 11.89 kB / 0.4911 GB, free: 9.078 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.364e-05/0.1263, allocations: 20.66 kB / 0.4912 GB, free: 9.059 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002573/0.1266, allocations: 208.2 kB / 0.4914 GB, free: 8.816 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.409e-05/0.1266, allocations: 20.69 kB / 0.4914 GB, free: 8.797 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.363e-05/0.1267, allocations: 16.38 kB / 0.4914 GB, free: 8.781 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003903/0.1271, allocations: 197.1 kB / 0.4916 GB, free: 8.582 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.1271, allocations: 3.938 kB / 0.4916 GB, free: 8.578 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.232e-05/0.1271, allocations: 8 kB / 0.4916 GB, free: 8.57 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.248e-06/0.1271, allocations: 4 kB / 0.4916 GB, free: 8.566 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000244/0.1274, allocations: 131 kB / 0.4917 GB, free: 8.441 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007225/0.1281, allocations: 499.7 kB / 0.4922 GB, free: 7.902 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 8.942e-05/0.1282, allocations: 42.56 kB / 0.4922 GB, free: 7.852 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.828e-05/0.1283, allocations: 32.91 kB / 0.4923 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.291e-05/0.1283, allocations: 0 / 0.4923 GB, free: 7.816 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.57e-05/0.1284, allocations: 30.56 kB / 0.4923 GB, free: 7.777 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 3.045e-06/0.1284, allocations: 8 kB / 0.4923 GB, free: 7.77 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002688/0.1286, allocations: 81.52 kB / 0.4924 GB, free: 7.684 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.1287, allocations: 55.34 kB / 0.4924 GB, free: 7.617 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.737e-05/0.1288, allocations: 109.8 kB / 0.4925 GB, free: 7.5 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 1.742e-05/0.1288, allocations: 29.64 kB / 0.4926 GB, free: 7.465 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.604e-05/0.1289, allocations: 139.9 kB / 0.4927 GB, free: 7.324 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.414e-05/0.129, allocations: 11.81 kB / 0.4927 GB, free: 7.312 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.261e-05/0.129, allocations: 13.72 kB / 0.4927 GB, free: 7.293 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001478/0.1292, allocations: 322.8 kB / 0.493 GB, free: 6.969 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.991e-05/0.1292, allocations: 8.25 kB / 0.493 GB, free: 6.961 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.832e-05/0.1292, allocations: 19.98 kB / 0.4931 GB, free: 6.941 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.608e-05/0.1293, allocations: 36.78 kB / 0.4931 GB, free: 6.902 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.004e-06/0.1293, allocations: 0 / 0.4931 GB, free: 6.902 MB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001294/0.1295, allocations: 65.53 kB / 0.4932 GB, free: 6.832 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.1295, allocations: 8 kB / 0.4932 GB, free: 6.824 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.474e-06/0.1295, allocations: 7.984 kB / 0.4932 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.589e-05/0.1295, allocations: 0 / 0.4932 GB, free: 6.816 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.17e-05/0.1296, allocations: 8 kB / 0.4932 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.978e-05/0.1297, allocations: 0 / 0.4932 GB, free: 6.809 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.81e-05/0.1297, allocations: 4 kB / 0.4932 GB, free: 6.805 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.7e-06/0.1297, allocations: 0 / 0.4932 GB, free: 6.805 MB / 382.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.0001118/0.1298, allocations: 137.8 kB / 0.4933 GB, free: 6.66 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.793e-05/0.1299, allocations: 7.938 kB / 0.4933 GB, free: 6.652 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.1299, allocations: 7.969 kB / 0.4933 GB, free: 6.641 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.668e-06/0.1299, allocations: 4 kB / 0.4933 GB, free: 6.637 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.1299, allocations: 3.938 kB / 0.4933 GB, free: 6.633 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.1299, allocations: 4 kB / 0.4933 GB, free: 6.629 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004188/0.1303, allocations: 366.3 kB / 0.4937 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.833e-06/0.1304, allocations: 0 / 0.4937 GB, free: 6.215 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.167e-05/0.1304, allocations: 8 kB / 0.4937 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.202e-06/0.1304, allocations: 0 / 0.4937 GB, free: 6.207 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.945e-06/0.1304, allocations: 4.188 kB / 0.4937 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.1304, allocations: 0 / 0.4937 GB, free: 6.203 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.017e-06/0.1304, allocations: 11.98 kB / 0.4937 GB, free: 6.191 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001579/0.1306, allocations: 155.5 kB / 0.4939 GB, free: 6.023 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.403e-05/0.1307, allocations: 89.02 kB / 0.4939 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.282e-05/0.1307, allocations: 0 / 0.4939 GB, free: 5.918 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.468e-05/0.1307, allocations: 3.984 kB / 0.4939 GB, free: 5.914 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.641e-05/0.1308, allocations: 7.938 kB / 0.494 GB, free: 5.906 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.906e-06/0.1308, allocations: 0 / 0.494 GB, free: 5.906 MB / 382.1 MB Notification: Performance of sorting global known variables: time 5.847e-05/0.1309, allocations: 99.25 kB / 0.494 GB, free: 5.809 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1309, allocations: 0 / 0.494 GB, free: 5.809 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0002327/0.1311, allocations: 19.84 kB / 0.4941 GB, free: 5.789 MB / 382.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.0001065/0.1312, allocations: 91.25 kB / 0.4942 GB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0001408/0.1314, allocations: 39.86 kB / 0.4942 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.1314, allocations: 0 / 0.4942 GB, free: 5.652 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 4.883e-05/0.1314, allocations: 23.92 kB / 0.4942 GB, free: 5.629 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003069/0.1317, allocations: 12 kB / 0.4942 GB, free: 5.617 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006072/0.1324, allocations: 300.9 kB / 0.4945 GB, free: 5.289 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003834/0.1328, allocations: 0.7351 MB / 0.4952 GB, free: 4.527 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.116e-05/0.1328, allocations: 11.44 kB / 0.4952 GB, free: 4.516 MB / 382.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1328, allocations: 0 / 0.4952 GB, free: 4.516 MB / 382.1 MB Notification: Performance of Templates: time 0.002982/0.1358, allocations: 1.239 MB / 0.4965 GB, free: 3.277 MB / 382.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