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.001278/0.001278, allocations: 112.6 kB / 18.45 MB, free: 4.621 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.001194/0.001194, allocations: 185.2 kB / 19.38 MB, free: 3.699 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.23/1.23, allocations: 222.9 MB / 243.1 MB, free: 15.05 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.1855/0.1855, allocations: 44.18 MB / 337.4 MB, free: 2.676 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001129/0.001129, allocations: 59.91 kB / 471.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2852/0.2863, allocations: 60.82 MB / 0.5196 GB, free: 3.602 MB / 382.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002207/0.2886, allocations: 1.546 MB / 0.5211 GB, free: 2.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001152/0.2887, allocations: 50.5 kB / 0.5211 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.123e-05/0.2887, allocations: 1.406 kB / 0.5211 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001264/0.2889, allocations: 23.23 kB / 0.5211 GB, free: 2.473 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 2.059e-05/0.2889, allocations: 5.344 kB / 0.5211 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 7.398e-05/0.289, allocations: 27.48 kB / 0.5212 GB, free: 2.453 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 9.599e-05/0.2891, allocations: 66.92 kB / 0.5212 GB, free: 2.43 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002521/0.2893, allocations: 128.5 kB / 0.5214 GB, free: 2.371 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.1e-05/0.2894, allocations: 39.05 kB / 0.5214 GB, free: 2.352 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.633e-05/0.2895, allocations: 40.25 kB / 0.5214 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 2.164e-05/0.2895, allocations: 7.812 kB / 0.5214 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.548e-05/0.2895, allocations: 8.625 kB / 0.5214 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 7.117e-05/0.2896, allocations: 66.12 kB / 0.5215 GB, free: 2.309 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 5.683e-05/0.2896, allocations: 64.45 kB / 0.5216 GB, free: 2.266 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001578/0.2898, allocations: 158.7 kB / 0.5217 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.137e-06/0.2898, allocations: 1.031 kB / 0.5217 GB, free: 2.191 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2898, allocations: 0.8906 kB / 0.5217 GB, free: 2.191 MB / 382.1 MB Notification: Performance of Transformations before backend: time 5.651e-06/0.2898, allocations: 0 / 0.5217 GB, free: 2.191 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.000379/0.2902, allocations: 439 kB / 0.5221 GB, free: 1.785 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.2903, allocations: 9.734 kB / 0.5222 GB, free: 1.785 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.953e-05/0.2903, allocations: 17.75 kB / 0.5222 GB, free: 1.777 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001474/0.2904, allocations: 212 kB / 0.5224 GB, free: 1.562 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.2905, allocations: 20.56 kB / 0.5224 GB, free: 1.551 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.782e-05/0.2905, allocations: 20.66 kB / 0.5224 GB, free: 1.543 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003189/0.2908, allocations: 199.9 kB / 0.5226 GB, free: 1.453 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.2908, allocations: 3.938 kB / 0.5226 GB, free: 1.449 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.889e-05/0.2909, allocations: 10.22 kB / 0.5226 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.614e-06/0.2909, allocations: 4.719 kB / 0.5226 GB, free: 1.441 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002083/0.2911, allocations: 122.1 kB / 0.5227 GB, free: 1.414 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004996/0.2916, allocations: 495.9 kB / 0.5232 GB, free: 1.047 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 7.917e-05/0.2917, allocations: 42.5 kB / 0.5233 GB, free: 1.016 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.594e-05/0.2918, allocations: 34.97 kB / 0.5233 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.023e-05/0.2918, allocations: 1.344 kB / 0.5233 GB, free: 0.9961 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.471e-05/0.2918, allocations: 32.59 kB / 0.5233 GB, free: 0.957 MB / 382.1 MB Notification: Performance of pre-optimization done (n=5): time 1.112e-06/0.2918, allocations: 4 kB / 0.5233 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002046/0.292, allocations: 77.91 kB / 0.5234 GB, free: 0.9062 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.783e-05/0.292, allocations: 51.41 kB / 0.5234 GB, free: 0.8438 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.893e-05/0.2921, allocations: 107.4 kB / 0.5235 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.613e-06/0.2921, allocations: 26.73 kB / 0.5236 GB, free: 0.7109 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.336e-05/0.2922, allocations: 137.7 kB / 0.5237 GB, free: 0.5859 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.775e-05/0.2922, allocations: 15.55 kB / 0.5237 GB, free: 0.5742 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.518e-05/0.2922, allocations: 18.11 kB / 0.5237 GB, free: 0.5547 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 3.686e-05/0.2922, allocations: 317.1 kB / 0.524 GB, free: 244 kB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.855e-05/0.2923, allocations: 9.844 kB / 0.524 GB, free: 244 kB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.215e-05/0.2923, allocations: 14.3 kB / 0.5241 GB, free: 240 kB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.827e-05/0.2924, allocations: 35.3 kB / 0.5241 GB, free: 220 kB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2924, allocations: 0.5156 kB / 0.5241 GB, free: 220 kB / 382.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.000101/0.2925, allocations: 68.67 kB / 0.5242 GB, free: 172 kB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.239e-05/0.2925, allocations: 10.06 kB / 0.5242 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.559e-06/0.2925, allocations: 0.6562 kB / 0.5242 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.127e-05/0.2926, allocations: 0 / 0.5242 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.806e-05/0.2926, allocations: 10.64 kB / 0.5242 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.729e-06/0.2926, allocations: 0 / 0.5242 GB, free: 168 kB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.349e-05/0.2927, allocations: 6.734 kB / 0.5242 GB, free: 164 kB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.2927, allocations: 2.219 kB / 0.5242 GB, free: 164 kB / 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 6.733e-05/0.2928, allocations: 134 kB / 0.5243 GB, free: 40 kB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.291e-05/0.2928, allocations: 9 kB / 0.5243 GB, free: 32 kB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.882e-05/0.2928, allocations: 15.27 kB / 0.5243 GB, free: 20 kB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.773e-06/0.2928, allocations: 3.938 kB / 0.5243 GB, free: 16 kB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.366e-06/0.2928, allocations: 5.438 kB / 0.5243 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.385e-06/0.2928, allocations: 0.7031 kB / 0.5244 GB, free: 12 kB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003471/0.2932, allocations: 364.2 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.2932, allocations: 1.344 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.012e-05/0.2932, allocations: 14.05 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.629e-06/0.2932, allocations: 1.078 kB / 0.5247 GB, free: 15.68 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.769e-06/0.2933, allocations: 5.188 kB / 0.5247 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.263e-06/0.2933, allocations: 4 kB / 0.5247 GB, free: 15.67 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.2933, allocations: 5.328 kB / 0.5247 GB, free: 15.66 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001491/0.2934, allocations: 156.2 kB / 0.5249 GB, free: 15.52 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.326e-05/0.2935, allocations: 82.75 kB / 0.525 GB, free: 15.43 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.236e-05/0.2935, allocations: 5.641 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.196e-05/0.2935, allocations: 3.047 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.896e-05/0.2936, allocations: 6.453 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.376e-06/0.2936, allocations: 3 kB / 0.525 GB, free: 15.42 MB / 398.1 MB Notification: Performance of sorting global known variables: time 3.715e-05/0.2936, allocations: 86.92 kB / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2936, allocations: 0 / 0.5251 GB, free: 15.34 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002195/0.2939, allocations: 26.19 kB / 0.5251 GB, free: 15.33 MB / 398.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 7.254e-05/0.2939, allocations: 90.95 kB / 0.5252 GB, free: 15.24 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001781/0.2941, allocations: 42.08 kB / 0.5252 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.754e-06/0.2941, allocations: 0 / 0.5252 GB, free: 15.23 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.36e-05/0.2942, allocations: 19.12 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002481/0.2944, allocations: 11.67 kB / 0.5252 GB, free: 15.22 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004519/0.2949, allocations: 301.9 kB / 0.5255 GB, free: 15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002586/0.2952, allocations: 0.7385 MB / 0.5262 GB, free: 14.29 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.494e-05/0.2952, allocations: 12.06 kB / 0.5263 GB, free: 14.28 MB / 398.1 MB Notification: Performance of SimCode: time 2.2e-07/0.2952, allocations: 0 / 0.5263 GB, free: 14.28 MB / 398.1 MB Notification: Performance of Templates: time 0.002587/0.2978, allocations: 1.249 MB / 0.5275 GB, free: 14 MB / 398.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