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.001339/0.001339, allocations: 106.3 kB / 17.98 MB, free: 5.402 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.001312/0.001312, allocations: 189.3 kB / 18.9 MB, free: 4.48 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.326/1.326, allocations: 222.9 MB / 242.6 MB, free: 15.43 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.201/0.201, allocations: 44.18 MB / 336.9 MB, free: 2.969 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001232/0.001232, allocations: 63.41 kB / 408.5 MB, free: 27.62 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09387/0.09512, allocations: 60.83 MB / 469.4 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002626/0.09778, allocations: 1.599 MB / 471 MB, free: 13.15 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001308/0.09794, allocations: 59.83 kB / 471 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.623e-05/0.098, allocations: 3.938 kB / 471 MB, free: 13.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001401/0.09815, allocations: 7.922 kB / 471 MB, free: 13.08 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 2.953e-05/0.0982, allocations: 7.938 kB / 471 MB, free: 13.07 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 8.353e-05/0.09829, allocations: 19.98 kB / 471.1 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 9.571e-05/0.09839, allocations: 71.72 kB / 471.1 MB, free: 12.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002437/0.09864, allocations: 127.4 kB / 471.3 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.902e-05/0.0987, allocations: 39.84 kB / 471.3 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.483e-05/0.09876, allocations: 39.84 kB / 471.3 MB, free: 12.77 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.032e-05/0.09879, allocations: 12 kB / 471.4 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.533e-05/0.09881, allocations: 8 kB / 471.4 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.137e-05/0.09888, allocations: 63.88 kB / 471.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.79e-05/0.09896, allocations: 63.61 kB / 471.5 MB, free: 12.63 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001331/0.0991, allocations: 111.8 kB / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.09911, allocations: 0 / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.09911, allocations: 0 / 471.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.09912, allocations: 0 / 471.6 MB, free: 12.52 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.0004647/0.09959, allocations: 438.7 kB / 472 MB, free: 12.05 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.09964, allocations: 12.03 kB / 472 MB, free: 12.04 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.55e-05/0.09969, allocations: 16.75 kB / 472 MB, free: 12.02 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001946/0.09989, allocations: 224 kB / 472.3 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.472e-05/0.09991, allocations: 12.75 kB / 472.3 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.456e-05/0.09994, allocations: 20.38 kB / 472.3 MB, free: 11.73 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000331/0.1003, allocations: 196.9 kB / 472.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.312e-05/0.1003, allocations: 3.938 kB / 472.5 MB, free: 11.53 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.909e-05/0.1003, allocations: 8 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.313e-06/0.1003, allocations: 4 kB / 472.5 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002097/0.1006, allocations: 131.3 kB / 472.6 MB, free: 11.39 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000574/0.1011, allocations: 499.8 kB / 473.1 MB, free: 10.85 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.95e-05/0.1012, allocations: 42.56 kB / 473.2 MB, free: 10.8 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.869e-05/0.1013, allocations: 36.91 kB / 473.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.137e-05/0.1013, allocations: 0 / 473.2 MB, free: 10.76 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.651e-05/0.1013, allocations: 30.56 kB / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=5): time 8.11e-07/0.1013, allocations: 4 kB / 473.2 MB, free: 10.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002167/0.1016, allocations: 73.61 kB / 473.3 MB, free: 10.64 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.427e-05/0.1016, allocations: 51.41 kB / 473.4 MB, free: 10.58 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.497e-05/0.1017, allocations: 109.8 kB / 473.5 MB, free: 10.46 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.195e-05/0.1017, allocations: 29.7 kB / 473.5 MB, free: 10.43 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.1018, allocations: 139.9 kB / 473.6 MB, free: 10.29 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.381e-05/0.1018, allocations: 11.75 kB / 473.6 MB, free: 10.27 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.248e-05/0.1018, allocations: 21.7 kB / 473.7 MB, free: 10.25 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.116e-05/0.1019, allocations: 310.8 kB / 474 MB, free: 9.934 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.957e-05/0.102, allocations: 15.98 kB / 474 MB, free: 9.918 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.961e-05/0.102, allocations: 8 kB / 474 MB, free: 9.91 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.969e-05/0.1021, allocations: 40.78 kB / 474 MB, free: 9.867 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.654e-06/0.1021, allocations: 0 / 474 MB, free: 9.867 MB / 350.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001146/0.1022, allocations: 69.52 kB / 474.1 MB, free: 9.793 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.426e-05/0.1023, allocations: 11.94 kB / 474.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.1023, allocations: 3.938 kB / 474.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.075e-05/0.1023, allocations: 0 / 474.1 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.159e-05/0.1024, allocations: 8 kB / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.1024, allocations: 0 / 474.1 MB, free: 9.77 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.545e-05/0.1024, allocations: 8.438 kB / 474.1 MB, free: 9.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.4e-06/0.1024, allocations: 0 / 474.1 MB, free: 9.762 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 9.114e-05/0.1025, allocations: 133.8 kB / 474.3 MB, free: 9.621 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.589e-05/0.1025, allocations: 19.77 kB / 474.3 MB, free: 9.602 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.871e-05/0.1026, allocations: 7.969 kB / 474.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.1026, allocations: 0 / 474.3 MB, free: 9.598 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.1026, allocations: 4 kB / 474.3 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.318e-06/0.1026, allocations: 7.984 kB / 474.3 MB, free: 9.586 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003273/0.1029, allocations: 358.5 kB / 474.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.312e-06/0.1029, allocations: 0 / 474.6 MB, free: 9.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.964e-05/0.103, allocations: 11.94 kB / 474.7 MB, free: 9.168 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.247e-06/0.103, allocations: 3.984 kB / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.033e-06/0.103, allocations: 0 / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.272e-06/0.103, allocations: 0 / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.103, allocations: 0 / 474.7 MB, free: 9.164 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001451/0.1032, allocations: 163.5 kB / 474.8 MB, free: 8.988 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.584e-05/0.1032, allocations: 85.02 kB / 474.9 MB, free: 8.887 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.284e-05/0.1032, allocations: 3.984 kB / 474.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.878e-05/0.1033, allocations: 0 / 474.9 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.24e-05/0.1033, allocations: 8 kB / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.525e-06/0.1033, allocations: 0 / 474.9 MB, free: 8.875 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.514e-05/0.1034, allocations: 87.27 kB / 475 MB, free: 8.789 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1034, allocations: 0 / 475 MB, free: 8.789 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002296/0.1036, allocations: 31.69 kB / 475 MB, free: 8.758 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 8.524e-05/0.1037, allocations: 103.2 kB / 475.1 MB, free: 8.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0001347/0.1038, allocations: 31.92 kB / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.1038, allocations: 0 / 475.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 4.269e-05/0.1039, allocations: 19.98 kB / 475.2 MB, free: 8.594 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002866/0.1042, allocations: 20.36 kB / 475.2 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005229/0.1047, allocations: 373.1 kB / 475.6 MB, free: 8.176 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002759/0.105, allocations: 0.7314 MB / 476.3 MB, free: 7.418 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.279e-05/0.105, allocations: 15.38 kB / 476.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of SimCode: time 2.3e-07/0.105, allocations: 0 / 476.3 MB, free: 7.406 MB / 350.1 MB Notification: Performance of Templates: time 0.00255/0.1076, allocations: 1.24 MB / 477.6 MB, free: 6.172 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