Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+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_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00122/0.00122, allocations: 174.2 kB / 17.36 MB, free: 4.445 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.877/1.877, allocations: 205.6 MB / 223.7 MB, free: 8.938 MB / 186.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008684/0.0008685, allocations: 94.47 kB / 272.1 MB, free: 8.102 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003484/0.0003484, allocations: 4 kB / 329 MB, free: 15.05 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3347/0.3351, allocations: 47.57 MB / 376.6 MB, free: 45.55 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001955/0.3371, allocations: 1.245 MB / 377.8 MB, free: 44.56 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002304/0.3394, allocations: 1.283 MB / 379.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.063e-05/0.3395, allocations: 4 kB / 379.1 MB, free: 43.41 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.3397, allocations: 10.11 kB / 379.1 MB, free: 43.4 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.3398, allocations: 17.41 kB / 379.2 MB, free: 43.39 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003563/0.3402, allocations: 44.94 kB / 379.2 MB, free: 43.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.3404, allocations: 127.1 kB / 379.3 MB, free: 43.29 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.3406, allocations: 27.45 kB / 379.4 MB, free: 43.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008454/0.3414, allocations: 0.6205 MB / 380 MB, free: 43.03 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.3416, allocations: 95.84 kB / 380.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.581e-05/0.3416, allocations: 3.406 kB / 380.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.027e-05/0.3417, allocations: 4.469 kB / 380.1 MB, free: 42.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001139/0.3418, allocations: 71.14 kB / 380.1 MB, free: 42.94 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001454/0.3419, allocations: 150 kB / 380.3 MB, free: 42.82 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003943/0.3423, allocations: 443 kB / 380.7 MB, free: 42.48 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3424, allocations: 0 / 380.7 MB, free: 42.48 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.003e-06/0.3424, allocations: 0 / 380.7 MB, free: 42.48 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.713e-06/0.3424, allocations: 5.469 kB / 380.7 MB, free: 42.48 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.0006755/0.3431, allocations: 0.736 MB / 381.5 MB, free: 41.74 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.426e-05/0.3431, allocations: 8.875 kB / 381.5 MB, free: 41.74 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.447e-05/0.3432, allocations: 46.5 kB / 381.5 MB, free: 41.72 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002928/0.3435, allocations: 295.4 kB / 381.8 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.184e-05/0.3435, allocations: 5.156 kB / 381.8 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.582e-05/0.3436, allocations: 9.688 kB / 381.8 MB, free: 41.43 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003908/0.344, allocations: 176.8 kB / 382 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.438e-06/0.344, allocations: 0 / 382 MB, free: 41.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.954e-05/0.3441, allocations: 7.906 kB / 382 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.3441, allocations: 1.062 kB / 382 MB, free: 41.32 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001852/0.3443, allocations: 84.55 kB / 382.1 MB, free: 41.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007135/0.345, allocations: 0.4957 MB / 382.6 MB, free: 40.86 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000231/0.3452, allocations: 125.5 kB / 382.7 MB, free: 40.79 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001936/0.3454, allocations: 110.9 kB / 382.8 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.427e-05/0.3454, allocations: 1.062 kB / 382.8 MB, free: 40.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004242/0.3459, allocations: 244.4 kB / 383.1 MB, free: 40.54 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 2.265e-06/0.3459, allocations: 112 / 383.1 MB, free: 40.54 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.001067/0.347, allocations: 0.6154 MB / 383.7 MB, free: 40.19 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.618e-05/0.3471, allocations: 194.3 kB / 383.9 MB, free: 39.96 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007467/0.3478, allocations: 0.5622 MB / 384.4 MB, free: 39.59 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.3479, allocations: 30.8 kB / 384.4 MB, free: 39.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.3479, allocations: 115.4 kB / 384.6 MB, free: 39.45 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.747e-05/0.348, allocations: 32.58 kB / 384.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.166e-05/0.348, allocations: 7 kB / 384.6 MB, free: 39.43 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.42e-05/0.3481, allocations: 327.5 kB / 384.9 MB, free: 39.1 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001624/0.3483, allocations: 83.89 kB / 385 MB, free: 39.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001774/0.3485, allocations: 97.11 kB / 385.1 MB, free: 39.02 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003852/0.3489, allocations: 438.8 kB / 385.5 MB, free: 38.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.3489, allocations: 0 / 385.5 MB, free: 38.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006895/0.3496, allocations: 0.5063 MB / 386 MB, free: 38.3 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.51e-05/0.3497, allocations: 151.8 kB / 386.2 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.59e-06/0.3497, allocations: 0 / 386.2 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.669e-05/0.3497, allocations: 1.219 kB / 386.2 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.694e-05/0.3497, allocations: 5.703 kB / 386.2 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.033e-06/0.3498, allocations: 0 / 386.2 MB, free: 38.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001934/0.35, allocations: 21.31 kB / 386.2 MB, free: 38.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001937/0.3502, allocations: 102.5 kB / 386.3 MB, free: 38.11 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.0003957/0.3506, allocations: 408.9 kB / 386.7 MB, free: 37.74 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.714e-05/0.3507, allocations: 42.78 kB / 386.7 MB, free: 37.72 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001046/0.3508, allocations: 71.94 kB / 386.8 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.3508, allocations: 0 / 386.8 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.999e-06/0.3508, allocations: 3.938 kB / 386.8 MB, free: 37.66 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.1e-06/0.3508, allocations: 8 kB / 386.8 MB, free: 37.65 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009352/0.3517, allocations: 0.9599 MB / 387.8 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.3518, allocations: 0 / 387.8 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.619e-06/0.3518, allocations: 0 / 387.8 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.114e-06/0.3518, allocations: 0 / 387.8 MB, free: 36.6 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.531e-05/0.3518, allocations: 19.98 kB / 387.8 MB, free: 36.58 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.3518, allocations: 0 / 387.8 MB, free: 36.58 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.3518, allocations: 7.875 kB / 387.8 MB, free: 36.57 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000615/0.3525, allocations: 0.6634 MB / 388.5 MB, free: 35.86 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002626/0.3527, allocations: 252.4 kB / 388.7 MB, free: 35.6 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.377e-05/0.3528, allocations: 12 kB / 388.7 MB, free: 35.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001477/0.353, allocations: 23.92 kB / 388.8 MB, free: 35.56 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001499/0.3531, allocations: 52.06 kB / 388.8 MB, free: 35.51 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.025e-05/0.3532, allocations: 109.2 kB / 388.9 MB, free: 35.41 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004064/0.3536, allocations: 414.9 kB / 389.3 MB, free: 35 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3536, allocations: 0 / 389.3 MB, free: 35 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002683/0.3539, allocations: 52 kB / 389.4 MB, free: 34.95 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.0001382/0.354, allocations: 124.2 kB / 389.5 MB, free: 34.82 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005017/0.3545, allocations: 0.5399 MB / 390 MB, free: 34.22 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.3546, allocations: 0 / 390 MB, free: 34.22 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003292/0.3549, allocations: 461 kB / 390.5 MB, free: 33.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007229/0.3556, allocations: 178.4 kB / 390.7 MB, free: 33.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001096/0.3567, allocations: 0.8763 MB / 391.5 MB, free: 32.64 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003273/0.3571, allocations: 0.8146 MB / 392.4 MB, free: 31.8 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.604e-05/0.3572, allocations: 16.8 kB / 392.4 MB, free: 31.78 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.91e-05/0.3572, allocations: 11.44 kB / 392.4 MB, free: 31.77 MB / 298.7 MB Notification: Performance of SimCode: time 2.9e-07/0.3572, allocations: 0 / 392.4 MB, free: 31.77 MB / 298.7 MB Notification: Performance of Templates: time 0.008659/0.3658, allocations: 6.705 MB / 399.1 MB, free: 24.94 MB / 298.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches