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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001387/0.001387, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001481/0.001481, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.51/1.51, allocations: 177 MB / 204.1 MB, free: 9.152 MB / 190.1 MB " [Timeout remaining time 178] 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=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.243e-06/1.243e-06, allocations: 0 / 325 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.363e-05/2.488e-05, allocations: 3.594 kB / 325 MB, free: 500 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002607/0.002632, allocations: 1.526 MB / 326.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002217/0.004848, allocations: 0.8522 MB / 327.4 MB, free: 14.89 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.001e-05/0.004908, allocations: 5.062 kB / 327.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000112/0.00502, allocations: 13.55 kB / 327.4 MB, free: 14.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001169/0.005137, allocations: 26 kB / 327.4 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002956/0.005433, allocations: 59.69 kB / 327.5 MB, free: 14.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002468/0.00568, allocations: 156.3 kB / 327.6 MB, free: 14.75 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001172/0.005797, allocations: 23.28 kB / 327.7 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009275/0.006724, allocations: 0.6557 MB / 328.3 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001962/0.006921, allocations: 75.83 kB / 328.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.462e-05/0.006985, allocations: 11.28 kB / 328.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.947e-05/0.007035, allocations: 10.78 kB / 328.4 MB, free: 14.64 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001395/0.007174, allocations: 76.34 kB / 328.5 MB, free: 14.61 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001282/0.007302, allocations: 69.34 kB / 328.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006276/0.00793, allocations: 462.7 kB / 329 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.497e-06/0.007934, allocations: 0 / 329 MB, free: 14.42 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007935, allocations: 0 / 329 MB, free: 14.42 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.624e-06/0.007942, allocations: 1.188 kB / 329 MB, free: 14.42 MB / 302.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.0009828/0.008925, allocations: 0.7447 MB / 329.8 MB, free: 13.73 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.008e-05/0.008965, allocations: 12.7 kB / 329.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001193/0.009084, allocations: 47.12 kB / 329.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000351/0.009435, allocations: 241.1 kB / 330.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.491e-05/0.00946, allocations: 8.906 kB / 330.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.687e-05/0.009497, allocations: 9.25 kB / 330.1 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005112/0.01001, allocations: 310.8 kB / 330.4 MB, free: 13.22 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.052e-05/0.01002, allocations: 4.188 kB / 330.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.614e-05/0.01005, allocations: 8 kB / 330.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.516e-05/0.01007, allocations: 13.05 kB / 330.4 MB, free: 13.2 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003024/0.01037, allocations: 226.2 kB / 330.6 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008932/0.01127, allocations: 431.6 kB / 331 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003295/0.0116, allocations: 241.3 kB / 331.3 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.01188, allocations: 237.7 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.267e-05/0.0119, allocations: 8.031 kB / 331.5 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005626/0.01246, allocations: 405.9 kB / 331.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 2.014e-06/0.01246, allocations: 0 / 331.9 MB, free: 11.86 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.001575/0.01404, allocations: 0.9086 MB / 332.8 MB, free: 11.17 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001496/0.01419, allocations: 194.8 kB / 333 MB, free: 10.94 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009687/0.01516, allocations: 0.5662 MB / 333.6 MB, free: 10.58 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.991e-05/0.01521, allocations: 34.08 kB / 333.6 MB, free: 10.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001185/0.01532, allocations: 116.8 kB / 333.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.151e-05/0.0154, allocations: 35.59 kB / 333.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001879/0.01558, allocations: 99.62 kB / 333.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001786/0.01576, allocations: 331.8 kB / 334.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003012/0.01606, allocations: 229.9 kB / 334.4 MB, free: 9.816 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003205/0.01638, allocations: 253.8 kB / 334.7 MB, free: 9.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005643/0.01695, allocations: 445.8 kB / 335.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.776e-06/0.01695, allocations: 0 / 335.1 MB, free: 9.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009952/0.01795, allocations: 0.6602 MB / 335.8 MB, free: 8.699 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001326/0.01808, allocations: 155.3 kB / 335.9 MB, free: 8.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.312e-06/0.01808, allocations: 5.281 kB / 335.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.849e-05/0.0181, allocations: 1.406 kB / 335.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.31e-05/0.01813, allocations: 0 / 335.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.913e-06/0.01813, allocations: 1.281 kB / 335.9 MB, free: 8.523 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001862/0.01832, allocations: 23.02 kB / 335.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001612/0.01848, allocations: 98.58 kB / 336 MB, free: 8.5 MB / 302.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.000546/0.01903, allocations: 398 kB / 336.4 MB, free: 8.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.265e-05/0.01911, allocations: 50.22 kB / 336.5 MB, free: 8.121 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001313/0.01924, allocations: 70.12 kB / 336.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.216e-06/0.01924, allocations: 1.188 kB / 336.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.01925, allocations: 1.125 kB / 336.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.006e-06/0.01925, allocations: 0 / 336.5 MB, free: 8.074 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001435/0.02069, allocations: 1.041 MB / 337.6 MB, free: 7.266 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.02069, allocations: 4 kB / 337.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.521e-06/0.0207, allocations: 1.25 kB / 337.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.0207, allocations: 0 / 337.6 MB, free: 7.262 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.175e-05/0.02074, allocations: 21.48 kB / 337.6 MB, free: 7.258 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.118e-06/0.02074, allocations: 4 kB / 337.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.083e-06/0.02075, allocations: 0 / 337.6 MB, free: 7.254 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001095/0.02184, allocations: 0.8244 MB / 338.4 MB, free: 6.633 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004577/0.0223, allocations: 216.3 kB / 338.6 MB, free: 6.488 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.178e-05/0.02238, allocations: 12.12 kB / 338.7 MB, free: 6.484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001714/0.02255, allocations: 20.77 kB / 338.7 MB, free: 6.473 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001932/0.02275, allocations: 55.88 kB / 338.7 MB, free: 6.418 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/0.02289, allocations: 109.4 kB / 338.8 MB, free: 6.312 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006061/0.02349, allocations: 422.8 kB / 339.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 8e-08/0.02349, allocations: 0 / 339.3 MB, free: 5.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003334/0.02383, allocations: 48 kB / 339.3 MB, free: 5.855 MB / 302.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.0001806/0.02401, allocations: 115.2 kB / 339.4 MB, free: 5.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0009405/0.02495, allocations: 0.7597 MB / 340.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.02495, allocations: 0 / 340.2 MB, free: 4.848 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005351/0.02549, allocations: 0.5287 MB / 340.7 MB, free: 4.227 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009798/0.02647, allocations: 207.4 kB / 340.9 MB, free: 4.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001505/0.02797, allocations: 0.9038 MB / 341.8 MB, free: 3.078 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003158/0.02829, allocations: 219.5 kB / 342 MB, free: 2.84 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.726e-05/0.02835, allocations: 12.97 kB / 342 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.434e-05/0.02839, allocations: 16.5 kB / 342 MB, free: 2.809 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.02839, allocations: 4 kB / 342.1 MB, free: 2.805 MB / 302.1 MB Notification: Performance of Templates: time 0.01424/0.04262, allocations: 7.981 MB / 350 MB, free: 10.73 MB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (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) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.599965028464794]