Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.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) 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(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001463/0.001463, allocations: 111.8 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001643/0.001643, allocations: 210.8 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.586/1.586, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001314/0.001314, allocations: 63.89 kB / 359.4 MB, free: 12.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2674/0.2687, allocations: 50.52 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002964/0.2717, allocations: 1.579 MB / 411.5 MB, free: 8 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.2738, allocations: 0.8926 MB / 412.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.627e-05/0.2739, allocations: 0 / 412.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001103/0.274, allocations: 19.86 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.177e-05/0.2741, allocations: 19.84 kB / 412.4 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002631/0.2744, allocations: 47.89 kB / 412.5 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002381/0.2746, allocations: 179.6 kB / 412.7 MB, free: 14.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001148/0.2748, allocations: 29.38 kB / 412.7 MB, free: 14.81 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000749/0.2755, allocations: 0.6278 MB / 413.3 MB, free: 14.18 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001533/0.2757, allocations: 79.64 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.604e-05/0.2757, allocations: 12 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.554e-05/0.2758, allocations: 12 kB / 413.4 MB, free: 14.08 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.562e-05/0.2759, allocations: 79.69 kB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002428/0.2761, allocations: 131 kB / 413.6 MB, free: 13.87 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004185/0.2766, allocations: 462.4 kB / 414.1 MB, free: 13.42 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.2766, allocations: 3.938 kB / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2766, allocations: 0 / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.653e-06/0.2766, allocations: 0 / 414.1 MB, free: 13.41 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009912/0.2776, allocations: 0.811 MB / 414.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.2776, allocations: 12.03 kB / 414.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.897e-05/0.2777, allocations: 40.47 kB / 414.9 MB, free: 12.48 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004021/0.2781, allocations: 290.2 kB / 415.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.943e-05/0.2782, allocations: 8.375 kB / 415.2 MB, free: 12.14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.669e-05/0.2782, allocations: 12.38 kB / 415.2 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003595/0.2786, allocations: 173.8 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.938e-06/0.2786, allocations: 3.938 kB / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.2786, allocations: 4 kB / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.668e-06/0.2787, allocations: 0 / 415.4 MB, free: 11.95 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001862/0.2788, allocations: 87.94 kB / 415.5 MB, free: 11.86 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008327/0.2797, allocations: 0.5042 MB / 416 MB, free: 11.31 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002318/0.2799, allocations: 118.5 kB / 416.1 MB, free: 11.18 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002078/0.2802, allocations: 108.9 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.157e-06/0.2802, allocations: 4 kB / 416.2 MB, free: 11.07 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004099/0.2806, allocations: 242.6 kB / 416.5 MB, free: 10.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.713e-06/0.2806, allocations: 7.938 kB / 416.5 MB, free: 10.8 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001097/0.2817, allocations: 0.6181 MB / 417.1 MB, free: 10.15 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001166/0.2818, allocations: 195.9 kB / 417.3 MB, free: 9.914 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007657/0.2826, allocations: 0.564 MB / 417.8 MB, free: 9.332 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.382e-05/0.2827, allocations: 29.7 kB / 417.9 MB, free: 9.297 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.669e-05/0.2827, allocations: 125 kB / 418 MB, free: 9.172 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.97e-05/0.2828, allocations: 27.66 kB / 418 MB, free: 9.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001523/0.283, allocations: 93.52 kB / 418.1 MB, free: 9.047 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.2831, allocations: 342.7 kB / 418.5 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001745/0.2833, allocations: 79.95 kB / 418.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000169/0.2835, allocations: 97.67 kB / 418.6 MB, free: 8.523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00043/0.2839, allocations: 430.7 kB / 419 MB, free: 8.035 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.955e-06/0.2839, allocations: 0 / 419 MB, free: 8.035 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007278/0.2846, allocations: 0.5049 MB / 419.5 MB, free: 7.496 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001862/0.2848, allocations: 156.5 kB / 419.7 MB, free: 7.312 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.061e-06/0.2849, allocations: 4.031 kB / 419.7 MB, free: 7.309 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.145e-05/0.2849, allocations: 4 kB / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.06e-05/0.2849, allocations: 0 / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.391e-06/0.2849, allocations: 0 / 419.7 MB, free: 7.305 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001655/0.2851, allocations: 19.89 kB / 419.7 MB, free: 7.285 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001174/0.2852, allocations: 97.23 kB / 419.8 MB, free: 7.191 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.0004425/0.2857, allocations: 403.9 kB / 420.2 MB, free: 6.758 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.203e-05/0.2857, allocations: 43.53 kB / 420.3 MB, free: 6.715 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000111/0.2859, allocations: 79.45 kB / 420.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.146e-06/0.2859, allocations: 0 / 420.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.921e-06/0.2859, allocations: 0 / 420.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.797e-06/0.2859, allocations: 0 / 420.3 MB, free: 6.641 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00122/0.2871, allocations: 0.9478 MB / 421.3 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.691e-06/0.2871, allocations: 7.984 kB / 421.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.522e-06/0.2871, allocations: 0 / 421.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.605e-06/0.2872, allocations: 0 / 421.3 MB, free: 5.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.261e-05/0.2872, allocations: 23.98 kB / 421.3 MB, free: 5.574 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.2872, allocations: 7.875 kB / 421.3 MB, free: 5.566 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.286e-06/0.2872, allocations: 7.938 kB / 421.3 MB, free: 5.559 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008465/0.2881, allocations: 0.6595 MB / 422 MB, free: 4.852 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004097/0.2885, allocations: 256.4 kB / 422.2 MB, free: 4.582 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.51e-05/0.2886, allocations: 12.19 kB / 422.3 MB, free: 4.57 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.2887, allocations: 12 kB / 422.3 MB, free: 4.559 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001598/0.2889, allocations: 63.86 kB / 422.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001108/0.289, allocations: 105.2 kB / 422.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00052/0.2896, allocations: 426.8 kB / 422.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.2896, allocations: 0 / 422.8 MB, free: 3.98 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003301/0.2899, allocations: 51.94 kB / 422.9 MB, free: 3.93 MB / 334.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: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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.0001477/0.2901, allocations: 119.2 kB / 423 MB, free: 3.805 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006638/0.2907, allocations: 0.536 MB / 423.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2907, allocations: 0 / 423.6 MB, free: 3.207 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004174/0.2912, allocations: 461 kB / 424 MB, free: 2.695 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009182/0.2921, allocations: 195.9 kB / 424.2 MB, free: 2.523 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001287/0.2934, allocations: 0.8008 MB / 425 MB, free: 1.691 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004579/0.2939, allocations: 0.8182 MB / 425.8 MB, free: 0.8477 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.67e-05/0.2939, allocations: 15.44 kB / 425.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of SimCode: time 5.11e-07/0.2939, allocations: 0 / 425.8 MB, free: 0.832 MB / 334.1 MB Notification: Performance of Templates: time 0.006625/0.3006, allocations: 4.309 MB / 430.1 MB, free: 12.43 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches