Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001266/0.001266, allocations: 183.2 kB / 16.71 MB, free: 4.969 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 225.7 MB / 243.2 MB, free: 10.23 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007683/0.0007683, allocations: 95.58 kB / 294.4 MB, free: 9.734 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002861/0.0002865, allocations: 4 kB / 354.2 MB, free: 13.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2347/0.235, allocations: 50.41 MB / 404.6 MB, free: 31.37 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001326/0.2364, allocations: 1.252 MB / 405.8 MB, free: 30.11 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001675/0.2381, allocations: 1.234 MB / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.126e-05/0.2382, allocations: 0 / 407.1 MB, free: 28.79 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 8.697e-05/0.2383, allocations: 11.92 kB / 407.1 MB, free: 28.77 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.864e-05/0.2384, allocations: 16.7 kB / 407.1 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002756/0.2387, allocations: 57.19 kB / 407.1 MB, free: 28.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001455/0.2388, allocations: 131.6 kB / 407.3 MB, free: 28.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.239, allocations: 20.17 kB / 407.3 MB, free: 28.55 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005612/0.2395, allocations: 0.62 MB / 407.9 MB, free: 27.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001441/0.2397, allocations: 83.62 kB / 408 MB, free: 27.85 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.199e-05/0.2397, allocations: 4 kB / 408 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.739e-05/0.2398, allocations: 7.031 kB / 408 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.388e-05/0.2399, allocations: 83.61 kB / 408.1 MB, free: 27.76 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.24, allocations: 148.7 kB / 408.2 MB, free: 27.61 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003245/0.2403, allocations: 446.3 kB / 408.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.2404, allocations: 0 / 408.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2404, allocations: 0 / 408.7 MB, free: 27.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 8.256e-06/0.2404, allocations: 0 / 408.7 MB, free: 27.17 MB / 298.7 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.0005971/0.241, allocations: 0.7334 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.6e-05/0.241, allocations: 8.031 kB / 409.4 MB, free: 26.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.325e-05/0.2411, allocations: 40.47 kB / 409.4 MB, free: 26.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002465/0.2414, allocations: 302.1 kB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.221e-05/0.2414, allocations: 8.312 kB / 409.7 MB, free: 25.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.44e-05/0.2414, allocations: 12.38 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003195/0.2418, allocations: 177.8 kB / 409.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.333e-06/0.2418, allocations: 0 / 409.9 MB, free: 25.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.61e-05/0.2418, allocations: 4 kB / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.2418, allocations: 0 / 409.9 MB, free: 25.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001509/0.242, allocations: 83.95 kB / 410 MB, free: 25.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006278/0.2426, allocations: 0.5081 MB / 410.5 MB, free: 25.13 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001854/0.2428, allocations: 118.5 kB / 410.6 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001484/0.243, allocations: 112.9 kB / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.243, allocations: 0 / 410.7 MB, free: 24.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003114/0.2433, allocations: 242.6 kB / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.603e-06/0.2433, allocations: 0 / 411 MB, free: 24.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007966/0.2441, allocations: 0.6148 MB / 411.6 MB, free: 23.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.563e-05/0.2442, allocations: 195.9 kB / 411.8 MB, free: 23.75 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005347/0.2447, allocations: 0.56 MB / 412.4 MB, free: 23.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.479e-05/0.2448, allocations: 29.7 kB / 412.4 MB, free: 23.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.199e-05/0.2449, allocations: 113.1 kB / 412.5 MB, free: 23.03 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.062e-05/0.2449, allocations: 39.53 kB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.848e-05/0.2449, allocations: 4 kB / 412.5 MB, free: 22.98 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.299e-05/0.245, allocations: 330.8 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001347/0.2451, allocations: 87.95 kB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001334/0.2453, allocations: 93.67 kB / 413 MB, free: 22.47 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002935/0.2456, allocations: 434.8 kB / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.805e-06/0.2456, allocations: 0 / 413.5 MB, free: 21.98 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0005245/0.2461, allocations: 0.5018 MB / 414 MB, free: 21.44 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.616e-05/0.2462, allocations: 152.5 kB / 414.1 MB, free: 21.26 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2462, allocations: 7.984 kB / 414.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.544e-05/0.2462, allocations: 0 / 414.1 MB, free: 21.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.161e-05/0.2463, allocations: 7.969 kB / 414.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.961e-06/0.2463, allocations: 0 / 414.1 MB, free: 21.24 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001765/0.2465, allocations: 15.94 kB / 414.1 MB, free: 21.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.478e-05/0.2466, allocations: 105.3 kB / 414.2 MB, free: 21.12 MB / 298.7 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,$whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,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: 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.0002999/0.2469, allocations: 407.9 kB / 414.6 MB, free: 20.68 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.2469, allocations: 43.53 kB / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.891e-05/0.247, allocations: 67.47 kB / 414.8 MB, free: 20.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.247, allocations: 8 kB / 414.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.661e-06/0.247, allocations: 0 / 414.8 MB, free: 20.56 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.247, allocations: 3.984 kB / 414.8 MB, free: 20.55 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009004/0.248, allocations: 0.9556 MB / 415.7 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.886e-06/0.248, allocations: 0 / 415.7 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.45e-06/0.248, allocations: 3.938 kB / 415.7 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.248, allocations: 0 / 415.7 MB, free: 19.51 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.275e-05/0.248, allocations: 23.98 kB / 415.7 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.925e-06/0.248, allocations: 4.125 kB / 415.7 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.248, allocations: 3.938 kB / 415.8 MB, free: 19.48 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006097/0.2487, allocations: 0.6673 MB / 416.4 MB, free: 18.76 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002664/0.2489, allocations: 252.3 kB / 416.7 MB, free: 18.5 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.378e-05/0.249, allocations: 12 kB / 416.7 MB, free: 18.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001474/0.2492, allocations: 15.98 kB / 416.7 MB, free: 18.47 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001327/0.2493, allocations: 59.88 kB / 416.8 MB, free: 18.41 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.076e-05/0.2494, allocations: 97.23 kB / 416.8 MB, free: 18.32 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0003724/0.2498, allocations: 418.8 kB / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 3.61e-07/0.2498, allocations: 0 / 417.3 MB, free: 17.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002864/0.2501, allocations: 55.94 kB / 417.3 MB, free: 17.85 MB / 298.7 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.0001167/0.2502, allocations: 127.1 kB / 417.4 MB, free: 17.72 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000474/0.2507, allocations: 0.5282 MB / 418 MB, free: 17.13 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.2507, allocations: 0 / 418 MB, free: 17.13 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002891/0.251, allocations: 464.9 kB / 418.4 MB, free: 16.61 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007043/0.2517, allocations: 178.7 kB / 418.6 MB, free: 16.44 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009872/0.2527, allocations: 0.8725 MB / 419.5 MB, free: 15.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003374/0.253, allocations: 0.8146 MB / 420.3 MB, free: 14.71 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 8.216e-05/0.2531, allocations: 16.86 kB / 420.3 MB, free: 14.69 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.026e-05/0.2532, allocations: 15.44 kB / 420.3 MB, free: 14.67 MB / 298.7 MB Notification: Performance of SimCode: time 1.91e-07/0.2532, allocations: 0 / 420.3 MB, free: 14.67 MB / 298.7 MB Notification: Performance of Templates: time 0.008868/0.262, allocations: 6.696 MB / 427 MB, free: 7.867 MB / 298.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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","../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches