Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001348/0.001348, allocations: 113 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001329/0.001329, allocations: 214.8 kB / 19.41 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 247.6 MB, free: 10.46 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2088/0.2088, allocations: 46.1 MB / 344.9 MB, free: 11.49 MB / 286.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001531/0.001531, allocations: 75.88 kB / 482 MB, free: 4.074 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.289, allocations: 62.43 MB / 0.5316 GB, free: 13.62 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.MuxDemux): time 0.002775/0.2918, allocations: 1.561 MB / 0.5332 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000235/0.2921, allocations: 68.25 kB / 0.5332 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.817e-05/0.2922, allocations: 1.844 kB / 0.5332 GB, free: 12.34 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001476/0.2924, allocations: 17.64 kB / 0.5333 GB, free: 12.32 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 2.613e-05/0.2924, allocations: 7.922 kB / 0.5333 GB, free: 12.31 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000128/0.2926, allocations: 23.08 kB / 0.5333 GB, free: 12.3 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001017/0.2927, allocations: 76.06 kB / 0.5334 GB, free: 12.25 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.2929, allocations: 129 kB / 0.5335 GB, free: 12.18 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.21e-05/0.293, allocations: 35.67 kB / 0.5335 GB, free: 12.16 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.793e-05/0.2931, allocations: 41.47 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 2.396e-05/0.2931, allocations: 8.25 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.482e-05/0.2931, allocations: 9.625 kB / 0.5336 GB, free: 12.12 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 9.067e-05/0.2932, allocations: 71.31 kB / 0.5336 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 9.934e-05/0.2934, allocations: 64.11 kB / 0.5337 GB, free: 12.04 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001671/0.2935, allocations: 146.2 kB / 0.5338 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.587e-06/0.2935, allocations: 0 / 0.5338 GB, free: 11.94 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.2935, allocations: 0 / 0.5338 GB, free: 11.94 MB / 398.1 MB Notification: Performance of Transformations before backend: time 6.302e-06/0.2936, allocations: 0 / 0.5338 GB, free: 11.94 MB / 398.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.0005187/0.2941, allocations: 435.9 kB / 0.5343 GB, free: 11.52 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.2942, allocations: 17.61 kB / 0.5343 GB, free: 11.51 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.909e-05/0.2942, allocations: 17 kB / 0.5343 GB, free: 11.5 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.2944, allocations: 219.4 kB / 0.5345 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.27e-05/0.2944, allocations: 13 kB / 0.5345 GB, free: 11.27 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.2945, allocations: 19.38 kB / 0.5345 GB, free: 11.26 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003335/0.2948, allocations: 198.2 kB / 0.5347 GB, free: 11.14 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.013e-05/0.2948, allocations: 3.938 kB / 0.5347 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.798e-05/0.2949, allocations: 5.375 kB / 0.5347 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.2949, allocations: 5.5 kB / 0.5347 GB, free: 11.13 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002839/0.2952, allocations: 134.1 kB / 0.5349 GB, free: 11.07 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005838/0.2957, allocations: 492.1 kB / 0.5353 GB, free: 10.63 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.442e-05/0.2959, allocations: 42.69 kB / 0.5354 GB, free: 10.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.551e-05/0.296, allocations: 35.19 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.091e-05/0.296, allocations: 1.188 kB / 0.5354 GB, free: 10.57 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.973e-05/0.296, allocations: 35.53 kB / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of pre-optimization done (n=5): time 1.463e-06/0.296, allocations: 0 / 0.5354 GB, free: 10.53 MB / 398.1 MB Notification: Performance of matching and sorting (n=5): time 0.0002634/0.2963, allocations: 74.7 kB / 0.5355 GB, free: 10.48 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.942e-05/0.2963, allocations: 52.5 kB / 0.5356 GB, free: 10.42 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.206e-05/0.2964, allocations: 106.9 kB / 0.5357 GB, free: 10.31 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 1.449e-05/0.2964, allocations: 34.86 kB / 0.5357 GB, free: 10.27 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.067e-05/0.2965, allocations: 132.1 kB / 0.5358 GB, free: 10.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.321e-05/0.2965, allocations: 18.11 kB / 0.5358 GB, free: 10.13 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.24e-05/0.2966, allocations: 18.19 kB / 0.5359 GB, free: 10.11 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.2967, allocations: 311.9 kB / 0.5361 GB, free: 9.797 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.504e-05/0.2967, allocations: 14.7 kB / 0.5362 GB, free: 9.789 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.48e-05/0.2968, allocations: 11.77 kB / 0.5362 GB, free: 9.785 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.039e-05/0.2968, allocations: 36.28 kB / 0.5362 GB, free: 9.762 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.2969, allocations: 1.125 kB / 0.5362 GB, free: 9.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 0.0001855/0.297, allocations: 70.94 kB / 0.5363 GB, free: 9.707 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.2971, allocations: 9.531 kB / 0.5363 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.977e-06/0.2971, allocations: 0 / 0.5363 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.2971, allocations: 1.125 kB / 0.5363 GB, free: 9.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.72e-05/0.2972, allocations: 11.95 kB / 0.5363 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.991e-06/0.2972, allocations: 0 / 0.5363 GB, free: 9.699 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.847e-05/0.2972, allocations: 10.12 kB / 0.5363 GB, free: 9.691 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.623e-06/0.2972, allocations: 5.156 kB / 0.5363 GB, free: 9.688 MB / 398.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.668e-05/0.2973, allocations: 138.9 kB / 0.5364 GB, free: 9.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.865e-05/0.2974, allocations: 10.53 kB / 0.5365 GB, free: 9.547 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.23e-05/0.2974, allocations: 9.156 kB / 0.5365 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.653e-06/0.2974, allocations: 1.156 kB / 0.5365 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.889e-06/0.2974, allocations: 1.219 kB / 0.5365 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.535e-06/0.2974, allocations: 0 / 0.5365 GB, free: 9.539 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003649/0.2978, allocations: 375.3 kB / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.2978, allocations: 0 / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.756e-05/0.2979, allocations: 8.469 kB / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.965e-06/0.2979, allocations: 1.25 kB / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.092e-06/0.2979, allocations: 0 / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.844e-06/0.2979, allocations: 1.344 kB / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2979, allocations: 0 / 0.5368 GB, free: 9.172 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001988/0.2981, allocations: 166.8 kB / 0.537 GB, free: 9.016 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.66e-05/0.2982, allocations: 86.11 kB / 0.5371 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.191e-05/0.2982, allocations: 1.188 kB / 0.5371 GB, free: 8.914 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 5.734e-05/0.2983, allocations: 5.359 kB / 0.5371 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.59e-05/0.2983, allocations: 2.75 kB / 0.5371 GB, free: 8.91 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.487e-06/0.2983, allocations: 1.375 kB / 0.5371 GB, free: 8.91 MB / 398.1 MB Notification: Performance of sorting global known variables: time 4.147e-05/0.2983, allocations: 88.77 kB / 0.5372 GB, free: 8.828 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2983, allocations: 0 / 0.5372 GB, free: 8.828 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002389/0.2986, allocations: 29.44 kB / 0.5372 GB, free: 8.812 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 8.527e-05/0.2987, allocations: 98.22 kB / 0.5373 GB, free: 8.719 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001794/0.2989, allocations: 36.61 kB / 0.5373 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.075e-06/0.2989, allocations: 0 / 0.5373 GB, free: 8.703 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.681e-05/0.2989, allocations: 20.36 kB / 0.5373 GB, free: 8.695 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003204/0.2993, allocations: 15.81 kB / 0.5374 GB, free: 8.688 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004947/0.2998, allocations: 299.6 kB / 0.5376 GB, free: 8.453 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003168/0.3001, allocations: 0.7278 MB / 0.5384 GB, free: 7.73 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.857e-05/0.3001, allocations: 15.67 kB / 0.5384 GB, free: 7.719 MB / 398.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3001, allocations: 0 / 0.5384 GB, free: 7.719 MB / 398.1 MB Notification: Performance of Templates: time 0.002875/0.303, allocations: 1.23 MB / 0.5396 GB, free: 7.094 MB / 398.1 MB make -j1 -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.makefile (rm -f ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; mkfifo ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe ; head -c 1048576 < ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe >> ../files/ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.sim & ./ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > ModelicaTest_trunk_ModelicaTest.Blocks.MuxDemux.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_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_trunk_ModelicaTest.Blocks.MuxDemux.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches