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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001664/0.001664, allocations: 107.5 kB / 20.44 MB, free: 1.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002092/0.002092, allocations: 194.3 kB / 23.71 MB, free: 4.406 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.487/1.487, allocations: 225.7 MB / 252.5 MB, free: 12.8 MB / 206.1 MB " [Timeout remaining time 178] 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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,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=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001802/0.001802, allocations: 51.91 kB / 370.9 MB, free: 9.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.337/0.3388, allocations: 52.18 MB / 423.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003103/0.3419, allocations: 1.525 MB / 424.6 MB, free: 12.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.344, allocations: 0.8148 MB / 425.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.691e-05/0.3441, allocations: 3.938 kB / 425.4 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.869e-05/0.3442, allocations: 15.92 kB / 425.4 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.882e-05/0.3443, allocations: 23.78 kB / 425.4 MB, free: 12.07 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003194/0.3446, allocations: 63.81 kB / 425.5 MB, free: 12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002562/0.3448, allocations: 155.6 kB / 425.7 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000126/0.345, allocations: 21.58 kB / 425.7 MB, free: 11.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007077/0.3457, allocations: 0.6356 MB / 426.3 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001884/0.3459, allocations: 79.62 kB / 426.4 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.363e-05/0.3459, allocations: 12 kB / 426.4 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.588e-05/0.346, allocations: 12 kB / 426.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001078/0.3461, allocations: 75.75 kB / 426.5 MB, free: 11.01 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001365/0.3462, allocations: 99.16 kB / 426.6 MB, free: 10.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004797/0.3467, allocations: 468.3 kB / 427 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.307e-06/0.3467, allocations: 0 / 427 MB, free: 10.46 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.522e-06/0.3467, allocations: 0 / 427 MB, free: 10.46 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3467, allocations: 0 / 427 MB, free: 10.46 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.0008808/0.3476, allocations: 0.7463 MB / 427.8 MB, free: 9.652 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.125e-05/0.3476, allocations: 15.97 kB / 427.8 MB, free: 9.637 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.533e-05/0.3477, allocations: 44.66 kB / 427.8 MB, free: 9.594 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003502/0.3481, allocations: 232.8 kB / 428.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.091e-05/0.3481, allocations: 8.375 kB / 428.1 MB, free: 9.332 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.088e-05/0.3481, allocations: 16.38 kB / 428.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004547/0.3486, allocations: 314.3 kB / 428.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.3486, allocations: 0 / 428.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.011e-05/0.3486, allocations: 7.984 kB / 428.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.368e-06/0.3486, allocations: 0 / 428.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002706/0.3489, allocations: 228.5 kB / 428.6 MB, free: 8.711 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007957/0.3497, allocations: 432.1 kB / 429.1 MB, free: 8.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003073/0.35, allocations: 243 kB / 429.3 MB, free: 7.98 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000301/0.3503, allocations: 233.4 kB / 429.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.603e-05/0.3503, allocations: 0 / 429.5 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006815/0.351, allocations: 395.1 kB / 429.9 MB, free: 7.277 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.351, allocations: 0 / 429.9 MB, free: 7.277 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001332/0.3523, allocations: 0.9071 MB / 430.8 MB, free: 6.273 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001388/0.3525, allocations: 195.9 kB / 431 MB, free: 6.039 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000754/0.3532, allocations: 0.564 MB / 431.6 MB, free: 5.465 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.109e-05/0.3533, allocations: 29.7 kB / 431.6 MB, free: 5.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001015/0.3534, allocations: 113.1 kB / 431.7 MB, free: 5.312 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.429e-05/0.3534, allocations: 35.73 kB / 431.7 MB, free: 5.277 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001629/0.3536, allocations: 101.5 kB / 431.8 MB, free: 5.172 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001639/0.3537, allocations: 330.8 kB / 432.2 MB, free: 4.84 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002619/0.354, allocations: 232.4 kB / 432.4 MB, free: 4.582 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002789/0.3543, allocations: 249.5 kB / 432.6 MB, free: 4.305 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.3548, allocations: 442.7 kB / 433.1 MB, free: 3.805 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.275e-06/0.3548, allocations: 3.938 kB / 433.1 MB, free: 3.801 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008244/0.3556, allocations: 0.6548 MB / 433.7 MB, free: 3.078 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001195/0.3557, allocations: 152.5 kB / 433.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.3557, allocations: 0 / 433.9 MB, free: 2.898 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.3557, allocations: 4 kB / 433.9 MB, free: 2.895 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.284e-05/0.3558, allocations: 4.094 kB / 433.9 MB, free: 2.891 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.095e-05/0.3558, allocations: 7.984 kB / 433.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001563/0.3559, allocations: 15.94 kB / 433.9 MB, free: 2.867 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001206/0.3561, allocations: 101.2 kB / 434 MB, free: 2.77 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.0004316/0.3565, allocations: 408 kB / 434.4 MB, free: 2.332 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.852e-05/0.3566, allocations: 47.72 kB / 434.5 MB, free: 2.285 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001095/0.3567, allocations: 63.42 kB / 434.5 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3567, allocations: 7.938 kB / 434.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.871e-06/0.3567, allocations: 0 / 434.5 MB, free: 2.219 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.935e-06/0.3567, allocations: 4 kB / 434.5 MB, free: 2.215 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001329/0.358, allocations: 1.034 MB / 435.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.358, allocations: 0 / 435.6 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.589e-06/0.358, allocations: 3.938 kB / 435.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.884e-06/0.358, allocations: 0 / 435.6 MB, free: 1.078 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.626e-05/0.3581, allocations: 19.98 kB / 435.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.3581, allocations: 0 / 435.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.683e-06/0.3581, allocations: 0 / 435.6 MB, free: 1.059 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009464/0.359, allocations: 0.8201 MB / 436.4 MB, free: 168 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004465/0.3594, allocations: 217.3 kB / 436.6 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.837e-05/0.3595, allocations: 12 kB / 436.6 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000145/0.3597, allocations: 15.98 kB / 436.6 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001836/0.3598, allocations: 55.94 kB / 436.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/0.36, allocations: 97.23 kB / 436.8 MB, free: 15.78 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005772/0.3605, allocations: 422.8 kB / 437.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3605, allocations: 0 / 437.2 MB, free: 15.37 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002987/0.3608, allocations: 51.95 kB / 437.3 MB, free: 15.32 MB / 350.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.0001611/0.361, allocations: 127.2 kB / 437.4 MB, free: 15.19 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001122/0.3621, allocations: 0.7558 MB / 438.1 MB, free: 14.31 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.876e-06/0.3621, allocations: 4.062 kB / 438.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005197/0.3626, allocations: 0.5287 MB / 438.7 MB, free: 13.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008354/0.3635, allocations: 186.9 kB / 438.9 MB, free: 13.51 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001434/0.3649, allocations: 0.9007 MB / 439.8 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000317/0.3652, allocations: 211.4 kB / 440 MB, free: 12.32 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.768e-05/0.3653, allocations: 20.89 kB / 440 MB, free: 12.3 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.2e-05/0.3653, allocations: 19.44 kB / 440 MB, free: 12.28 MB / 350.1 MB Notification: Performance of SimCode: time 5.41e-07/0.3653, allocations: 0 / 440 MB, free: 12.28 MB / 350.1 MB Notification: Performance of Templates: time 0.01288/0.3782, allocations: 8.131 MB / 448.1 MB, free: 4.102 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8226467072963715]