Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001566/0.001565, allocations: 186.5 kB / 17.27 MB, free: 4.5 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.665/1.665, allocations: 222.9 MB / 240.9 MB, free: 11 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001442/0.001442, allocations: 99.62 kB / 291.2 MB, free: 10.94 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008679/0.000868, allocations: 39.94 kB / 350 MB, free: 80 kB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.326/0.3268, allocations: 49.44 MB / 399.5 MB, free: 33.38 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002553/0.3294, allocations: 1.624 MB / 401.1 MB, free: 31.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001743/0.3312, allocations: 0.8858 MB / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.91e-05/0.3313, allocations: 0 / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000134/0.3315, allocations: 10.92 kB / 402 MB, free: 30.86 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.834e-05/0.3316, allocations: 15.94 kB / 402 MB, free: 30.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000243/0.3318, allocations: 51.88 kB / 402.1 MB, free: 30.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001373/0.332, allocations: 131.7 kB / 402.2 MB, free: 30.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001146/0.3321, allocations: 25.39 kB / 402.2 MB, free: 30.63 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005165/0.3326, allocations: 0.6356 MB / 402.8 MB, free: 29.99 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001207/0.3328, allocations: 91.66 kB / 402.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.934e-05/0.3328, allocations: 4 kB / 402.9 MB, free: 29.9 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.897e-05/0.3329, allocations: 4 kB / 402.9 MB, free: 29.89 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.059e-05/0.3329, allocations: 79.62 kB / 403 MB, free: 29.82 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001142/0.3331, allocations: 131 kB / 403.1 MB, free: 29.69 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003016/0.3334, allocations: 438.5 kB / 403.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.798e-06/0.3334, allocations: 0 / 403.6 MB, free: 29.26 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.3334, allocations: 8 kB / 403.6 MB, free: 29.25 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3334, allocations: 0 / 403.6 MB, free: 29.25 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.0007037/0.3341, allocations: 0.8114 MB / 404.4 MB, free: 28.36 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.148e-05/0.3342, allocations: 8.031 kB / 404.4 MB, free: 28.35 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.393e-05/0.3342, allocations: 44.47 kB / 404.4 MB, free: 28.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002805/0.3345, allocations: 302 kB / 404.7 MB, free: 27.97 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.675e-05/0.3346, allocations: 4.375 kB / 404.7 MB, free: 27.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.388e-05/0.3346, allocations: 8.375 kB / 404.8 MB, free: 27.96 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003141/0.3349, allocations: 173.9 kB / 404.9 MB, free: 27.79 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.157e-06/0.3349, allocations: 4 kB / 404.9 MB, free: 27.78 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.448e-05/0.335, allocations: 4 kB / 404.9 MB, free: 27.78 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.033e-05/0.335, allocations: 4 kB / 404.9 MB, free: 27.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001461/0.3351, allocations: 87.89 kB / 405 MB, free: 27.69 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006595/0.3358, allocations: 0.4965 MB / 405.5 MB, free: 27.14 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001767/0.336, allocations: 126.5 kB / 405.6 MB, free: 27.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001457/0.3361, allocations: 112.9 kB / 405.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.173e-05/0.3362, allocations: 0 / 405.8 MB, free: 26.89 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003303/0.3365, allocations: 245 kB / 406 MB, free: 26.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=14): time 1.383e-06/0.3365, allocations: 3.938 kB / 406 MB, free: 26.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=14): time 0.000776/0.3373, allocations: 0.607 MB / 406.6 MB, free: 25.98 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.637e-05/0.3374, allocations: 203.8 kB / 406.8 MB, free: 25.74 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005227/0.3379, allocations: 0.5601 MB / 407.4 MB, free: 25.17 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.497e-05/0.3379, allocations: 29.7 kB / 407.4 MB, free: 25.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.777e-05/0.338, allocations: 121 kB / 407.5 MB, free: 25.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.588e-05/0.338, allocations: 23.72 kB / 407.5 MB, free: 24.99 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001087/0.3382, allocations: 101.3 kB / 407.6 MB, free: 24.89 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.564e-05/0.3382, allocations: 334.8 kB / 408 MB, free: 24.55 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001322/0.3384, allocations: 79.97 kB / 408 MB, free: 24.47 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000139/0.3385, allocations: 106.2 kB / 408.1 MB, free: 24.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.3388, allocations: 433.7 kB / 408.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.914e-06/0.3388, allocations: 0 / 408.6 MB, free: 23.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.000533/0.3394, allocations: 0.5018 MB / 409.1 MB, free: 23.34 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.187e-05/0.3395, allocations: 156.5 kB / 409.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.414e-06/0.3395, allocations: 0 / 409.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.77e-05/0.3395, allocations: 0 / 409.2 MB, free: 23.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.515e-05/0.3396, allocations: 8.031 kB / 409.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.642e-06/0.3396, allocations: 0 / 409.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001581/0.3397, allocations: 15.98 kB / 409.2 MB, free: 23.13 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.626e-05/0.3398, allocations: 101.4 kB / 409.3 MB, free: 23.03 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,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.0002791/0.3401, allocations: 407.9 kB / 409.7 MB, free: 22.59 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.982e-05/0.3402, allocations: 43.53 kB / 409.8 MB, free: 22.55 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.074e-05/0.3403, allocations: 67.47 kB / 409.8 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.3403, allocations: 4 kB / 409.8 MB, free: 22.47 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.212e-06/0.3403, allocations: 7.984 kB / 409.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.966e-06/0.3403, allocations: 0 / 409.9 MB, free: 22.46 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000886/0.3412, allocations: 0.9633 MB / 410.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.245e-06/0.3412, allocations: 0 / 410.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.479e-06/0.3412, allocations: 0 / 410.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.3412, allocations: 4 kB / 410.8 MB, free: 21.41 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.561e-05/0.3413, allocations: 19.98 kB / 410.8 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.3413, allocations: 4 kB / 410.8 MB, free: 21.39 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.717e-06/0.3413, allocations: 7.922 kB / 410.9 MB, free: 21.38 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009919/0.3423, allocations: 1.373 MB / 412.2 MB, free: 19.92 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003085/0.3426, allocations: 256.3 kB / 412.5 MB, free: 19.65 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.291e-05/0.3427, allocations: 15.98 kB / 412.5 MB, free: 19.63 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001452/0.3428, allocations: 12 kB / 412.5 MB, free: 19.62 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001694/0.343, allocations: 55.92 kB / 412.6 MB, free: 19.57 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-05/0.3431, allocations: 101.2 kB / 412.7 MB, free: 19.47 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0004261/0.3435, allocations: 422.8 kB / 413.1 MB, free: 19.05 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3435, allocations: 0 / 413.1 MB, free: 19.05 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004048/0.3439, allocations: 59.88 kB / 413.1 MB, free: 19 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.0001536/0.3441, allocations: 119.3 kB / 413.2 MB, free: 18.87 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0004861/0.3446, allocations: 0.5321 MB / 413.8 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.276e-06/0.3446, allocations: 0 / 413.8 MB, free: 18.28 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000286/0.3449, allocations: 468.8 kB / 414.2 MB, free: 17.76 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007627/0.3457, allocations: 180.8 kB / 414.4 MB, free: 17.58 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001116/0.3468, allocations: 0.9989 MB / 415.4 MB, free: 16.55 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002756/0.3471, allocations: 0.8302 MB / 416.2 MB, free: 15.69 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 6.01e-05/0.3472, allocations: 12.88 kB / 416.3 MB, free: 15.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.822e-05/0.3472, allocations: 11.44 kB / 416.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of SimCode: time 4.31e-07/0.3472, allocations: 0 / 416.3 MB, free: 15.66 MB / 298.7 MB Notification: Performance of Templates: time 0.008828/0.356, allocations: 7.113 MB / 423.4 MB, free: 8.441 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@2/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