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.001106/0.001106, allocations: 122.8 kB / 17.79 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001138, allocations: 197.2 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.47/1.47, allocations: 227.4 MB / 246.9 MB, free: 10.6 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001184/0.001184, allocations: 59.91 kB / 358.7 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.317/0.3182, allocations: 50.54 MB / 409.2 MB, free: 1.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002702/0.321, allocations: 1.571 MB / 410.8 MB, free: 56 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001974/0.323, allocations: 0.8965 MB / 411.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.085e-05/0.3231, allocations: 0 / 411.7 MB, free: 15.15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001055/0.3232, allocations: 15.86 kB / 411.7 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.241e-05/0.3233, allocations: 19.8 kB / 411.7 MB, free: 15.12 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002462/0.3235, allocations: 51.88 kB / 411.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002312/0.3238, allocations: 179.7 kB / 412 MB, free: 14.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.3239, allocations: 21.39 kB / 412 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006484/0.3246, allocations: 0.6317 MB / 412.6 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001523/0.3247, allocations: 83.69 kB / 412.7 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.508e-05/0.3248, allocations: 16 kB / 412.7 MB, free: 14.13 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.26e-05/0.3248, allocations: 8 kB / 412.7 MB, free: 14.12 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.57e-05/0.3249, allocations: 75.64 kB / 412.8 MB, free: 14.05 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002059/0.3251, allocations: 135 kB / 412.9 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004391/0.3256, allocations: 462.4 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.655e-06/0.3256, allocations: 3.984 kB / 413.4 MB, free: 13.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3256, allocations: 3.938 kB / 413.4 MB, free: 13.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.3256, allocations: 0 / 413.4 MB, free: 13.45 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.0008203/0.3265, allocations: 0.8071 MB / 414.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.084e-05/0.3265, allocations: 16.03 kB / 414.2 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.891e-05/0.3266, allocations: 40.47 kB / 414.3 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000335/0.3269, allocations: 286.2 kB / 414.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.651e-05/0.327, allocations: 16.31 kB / 414.6 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.791e-05/0.327, allocations: 8.375 kB / 414.6 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003582/0.3274, allocations: 169.9 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.228e-06/0.3274, allocations: 3.938 kB / 414.7 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.288e-05/0.3274, allocations: 8 kB / 414.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.689e-06/0.3274, allocations: 0 / 414.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.3276, allocations: 83.95 kB / 414.8 MB, free: 11.91 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007432/0.3284, allocations: 0.5003 MB / 415.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002204/0.3286, allocations: 122.5 kB / 415.4 MB, free: 11.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001779/0.3288, allocations: 108.9 kB / 415.5 MB, free: 11.12 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.492e-05/0.3288, allocations: 7.984 kB / 415.6 MB, free: 11.11 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003911/0.3292, allocations: 246.6 kB / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.583e-06/0.3292, allocations: 0 / 415.8 MB, free: 10.84 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009991/0.3302, allocations: 0.6182 MB / 416.4 MB, free: 10.19 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001232/0.3304, allocations: 191.9 kB / 416.6 MB, free: 9.961 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006757/0.3311, allocations: 0.5679 MB / 417.2 MB, free: 9.375 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.907e-05/0.3311, allocations: 29.7 kB / 417.2 MB, free: 9.34 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.823e-05/0.3312, allocations: 121 kB / 417.3 MB, free: 9.219 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.982e-05/0.3313, allocations: 31.69 kB / 417.3 MB, free: 9.188 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001406/0.3314, allocations: 101.4 kB / 417.4 MB, free: 9.082 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001257/0.3315, allocations: 330.9 kB / 417.8 MB, free: 8.75 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001679/0.3317, allocations: 83.89 kB / 417.8 MB, free: 8.668 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001638/0.3319, allocations: 97.67 kB / 417.9 MB, free: 8.566 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004211/0.3323, allocations: 434.6 kB / 418.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.3323, allocations: 0 / 418.4 MB, free: 8.074 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006754/0.333, allocations: 0.5042 MB / 418.9 MB, free: 7.535 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001136/0.3331, allocations: 152.5 kB / 419 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.821e-06/0.3331, allocations: 0 / 419 MB, free: 7.355 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.147e-05/0.3332, allocations: 4 kB / 419 MB, free: 7.352 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.737e-05/0.3332, allocations: 7.938 kB / 419 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.921e-06/0.3332, allocations: 0 / 419 MB, free: 7.344 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001494/0.3334, allocations: 15.91 kB / 419.1 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001148/0.3335, allocations: 93.3 kB / 419.1 MB, free: 7.238 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.0004097/0.3339, allocations: 407.9 kB / 419.5 MB, free: 6.801 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.514e-05/0.334, allocations: 47.56 kB / 419.6 MB, free: 6.754 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001067/0.3341, allocations: 67.48 kB / 419.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.445e-06/0.3341, allocations: 0 / 419.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.364e-06/0.3341, allocations: 0 / 419.7 MB, free: 6.691 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.192e-06/0.3341, allocations: 3.984 kB / 419.7 MB, free: 6.688 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001206/0.3353, allocations: 0.9673 MB / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.874e-06/0.3353, allocations: 0 / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.819e-06/0.3354, allocations: 0 / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.552e-06/0.3354, allocations: 0 / 420.6 MB, free: 5.633 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.008e-05/0.3354, allocations: 19.98 kB / 420.6 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.503e-06/0.3354, allocations: 7.938 kB / 420.7 MB, free: 5.605 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.635e-06/0.3354, allocations: 3.938 kB / 420.7 MB, free: 5.602 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008085/0.3362, allocations: 0.6634 MB / 421.3 MB, free: 4.891 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003366/0.3366, allocations: 252.4 kB / 421.6 MB, free: 4.625 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.263e-05/0.3367, allocations: 12 kB / 421.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001632/0.3368, allocations: 11.98 kB / 421.6 MB, free: 4.602 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001821/0.337, allocations: 59.88 kB / 421.6 MB, free: 4.543 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001048/0.3371, allocations: 113.1 kB / 421.8 MB, free: 4.434 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004852/0.3376, allocations: 422.8 kB / 422.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3376, allocations: 0 / 422.2 MB, free: 4.023 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002977/0.3379, allocations: 51.94 kB / 422.2 MB, free: 3.973 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.0001533/0.3381, allocations: 119.2 kB / 422.3 MB, free: 3.848 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006927/0.3388, allocations: 0.5282 MB / 422.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.235e-06/0.3388, allocations: 0 / 422.9 MB, free: 3.258 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004034/0.3392, allocations: 469 kB / 423.3 MB, free: 2.738 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008268/0.34, allocations: 182 kB / 423.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001198/0.3413, allocations: 0.7524 MB / 424.3 MB, free: 1.797 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005143/0.3418, allocations: 0.8221 MB / 425.1 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.229e-05/0.3419, allocations: 16.88 kB / 425.1 MB, free: 0.9297 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.638e-05/0.3419, allocations: 11.44 kB / 425.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3419, allocations: 0 / 425.1 MB, free: 0.918 MB / 334.1 MB Notification: Performance of Templates: time 0.01321/0.3551, allocations: 7.436 MB / 432.5 MB, free: 9.355 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches