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.0008376/0.0008376, allocations: 80.62 kB / 22.21 MB, free: 2.289 MB / 18.57 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.0008543/0.0008543, allocations: 145.3 kB / 25.59 MB, free: 8.902 MB / 18.57 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 0.9349/0.9349, allocations: 173.4 MB / 202.3 MB, free: 8.285 MB / 186.7 MB " [Timeout remaining time 179] 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 1.643e-06/1.643e-06, allocations: 0 / 269.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.419e-05/1.583e-05, allocations: 2.312 kB / 269.2 MB, free: 9.766 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002521/0.002537, allocations: 1.551 MB / 270.7 MB, free: 8.219 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001448/0.003985, allocations: 0.8401 MB / 271.6 MB, free: 7.375 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.815e-05/0.004033, allocations: 4 kB / 271.6 MB, free: 7.371 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 7.753e-05/0.004111, allocations: 7.875 kB / 271.6 MB, free: 7.363 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.316e-05/0.004184, allocations: 21.2 kB / 271.6 MB, free: 7.344 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002177/0.004402, allocations: 59.8 kB / 271.7 MB, free: 7.285 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001569/0.004558, allocations: 160.1 kB / 271.8 MB, free: 7.129 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.193e-05/0.00463, allocations: 22.12 kB / 271.9 MB, free: 7.102 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004808/0.005111, allocations: 0.6629 MB / 272.5 MB, free: 6.438 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001184/0.00523, allocations: 77.77 kB / 272.6 MB, free: 6.363 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.422e-05/0.005264, allocations: 8 kB / 272.6 MB, free: 6.355 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.647e-05/0.00529, allocations: 12 kB / 272.6 MB, free: 6.344 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 6.759e-05/0.005358, allocations: 75.7 kB / 272.7 MB, free: 6.27 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.023e-05/0.005428, allocations: 67.66 kB / 272.8 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002453/0.005673, allocations: 360.4 kB / 273.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.654e-06/0.005675, allocations: 0 / 273.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.005676, allocations: 0 / 273.1 MB, free: 5.852 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.188e-06/0.00568, allocations: 0 / 273.1 MB, free: 5.852 MB / 250.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.0005953/0.006275, allocations: 0.8812 MB / 274 MB, free: 4.902 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.299e-05/0.006308, allocations: 9.031 kB / 274 MB, free: 4.895 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.8e-05/0.006386, allocations: 52.66 kB / 274 MB, free: 4.844 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002001/0.006586, allocations: 239.6 kB / 274.3 MB, free: 4.582 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.982e-05/0.006606, allocations: 8.375 kB / 274.3 MB, free: 4.574 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.24e-05/0.006628, allocations: 9.062 kB / 274.3 MB, free: 4.566 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002814/0.00691, allocations: 303.2 kB / 274.6 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.482e-06/0.006916, allocations: 0.9062 kB / 274.6 MB, free: 4.23 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.931e-05/0.006936, allocations: 12.3 kB / 274.6 MB, free: 4.219 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.651e-06/0.006941, allocations: 7 kB / 274.6 MB, free: 4.215 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000118/0.007059, allocations: 196.5 kB / 274.8 MB, free: 3.992 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004938/0.007553, allocations: 448 kB / 275.2 MB, free: 3.527 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001534/0.007706, allocations: 223.5 kB / 275.5 MB, free: 3.266 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001077/0.007814, allocations: 204.2 kB / 275.7 MB, free: 3.031 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.272e-06/0.00782, allocations: 8.906 kB / 275.7 MB, free: 3.023 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002653/0.008086, allocations: 372.7 kB / 276 MB, free: 2.602 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.008087, allocations: 0.5 kB / 276 MB, free: 2.602 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0006604/0.008748, allocations: 0.8347 MB / 276.9 MB, free: 1.668 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.024e-05/0.008818, allocations: 203.8 kB / 277.1 MB, free: 1.426 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004627/0.009281, allocations: 0.5489 MB / 277.6 MB, free: 0.8633 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.884e-05/0.009309, allocations: 33.7 kB / 277.7 MB, free: 0.8242 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.36e-05/0.009383, allocations: 163.8 kB / 277.8 MB, free: 0.6562 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.389e-05/0.009417, allocations: 31.8 kB / 277.8 MB, free: 0.625 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.317e-05/0.00951, allocations: 99.19 kB / 277.9 MB, free: 0.5195 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001301/0.00964, allocations: 0.5079 MB / 278.4 MB, free: 0 / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001342/0.009774, allocations: 192.5 kB / 278.6 MB, free: 15.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00012/0.009894, allocations: 215.8 kB / 278.8 MB, free: 15.53 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002294/0.01012, allocations: 412.3 kB / 279.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.01013, allocations: 0 / 279.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004512/0.01058, allocations: 0.6103 MB / 279.9 MB, free: 14.38 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.196e-05/0.01065, allocations: 156.5 kB / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.468e-06/0.01065, allocations: 0 / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.147e-06/0.01066, allocations: 0 / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.721e-05/0.01068, allocations: 4 kB / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.196e-06/0.01068, allocations: 0 / 280 MB, free: 14.2 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.01079, allocations: 20.02 kB / 280 MB, free: 14.18 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.011e-05/0.01087, allocations: 105.5 kB / 280.1 MB, free: 14.07 MB / 266.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.0002811/0.01115, allocations: 419 kB / 280.5 MB, free: 13.62 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.789e-05/0.01121, allocations: 63.66 kB / 280.6 MB, free: 13.56 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.459e-05/0.01129, allocations: 59.41 kB / 280.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.485e-06/0.01129, allocations: 0 / 280.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.344e-06/0.0113, allocations: 0 / 280.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.366e-06/0.0113, allocations: 0 / 280.7 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007475/0.01205, allocations: 0.9945 MB / 281.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.01205, allocations: 7.938 kB / 281.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.039e-06/0.01206, allocations: 4 kB / 281.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.134e-06/0.01206, allocations: 0 / 281.7 MB, free: 12.4 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.595e-05/0.01208, allocations: 23.92 kB / 281.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.01209, allocations: 0 / 281.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.01209, allocations: 0 / 281.7 MB, free: 12.38 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005129/0.0126, allocations: 0.8324 MB / 282.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002396/0.01284, allocations: 197.3 kB / 282.7 MB, free: 11.27 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002227/0.01306, allocations: 12 kB / 282.7 MB, free: 11.26 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.005e-05/0.01315, allocations: 15.98 kB / 282.7 MB, free: 11.25 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.6e-05/0.01324, allocations: 39.97 kB / 282.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.972e-05/0.01331, allocations: 97.48 kB / 282.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0002307/0.01354, allocations: 330.8 kB / 283.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01354, allocations: 3.938 kB / 283.2 MB, free: 10.79 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000206/0.01374, allocations: 51.95 kB / 283.3 MB, free: 10.73 MB / 266.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 9.701e-05/0.01384, allocations: 115.2 kB / 283.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004083/0.01425, allocations: 0.7085 MB / 284.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.353e-06/0.01425, allocations: 0 / 284.1 MB, free: 9.777 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000236/0.01449, allocations: 0.505 MB / 284.6 MB, free: 9.176 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004738/0.01496, allocations: 206.7 kB / 284.8 MB, free: 8.984 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007858/0.01575, allocations: 0.8481 MB / 285.6 MB, free: 8.074 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.121e-05/0.01582, allocations: 107.8 kB / 285.7 MB, free: 7.949 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.602e-05/0.01586, allocations: 16.94 kB / 285.8 MB, free: 7.93 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003917/0.01626, allocations: 274.2 kB / 286 MB, free: 7.66 MB / 266.7 MB Notification: Performance of SimCode: time 6.41e-07/0.01626, allocations: 0 / 286 MB, free: 7.66 MB / 266.7 MB Notification: Performance of Templates: time 0.008391/0.02465, allocations: 7.439 MB / 293.5 MB, free: 192 kB / 266.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8380194078199565]