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.001083/0.001083, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009273/0.0009273, allocations: 147.5 kB / 24.81 MB, free: 9.27 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 1.009/1.009, allocations: 173.4 MB / 201.4 MB, free: 9.223 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 2.826e-06/2.826e-06, allocations: 0 / 268.4 MB, free: 6.215 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.003e-05/3.285e-05, allocations: 2.312 kB / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003068/0.003101, allocations: 1.545 MB / 270 MB, free: 4.652 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001759/0.00486, allocations: 0.8419 MB / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.499e-05/0.004925, allocations: 0 / 270.8 MB, free: 3.805 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 9.317e-05/0.005018, allocations: 15.86 kB / 270.8 MB, free: 3.789 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 9.411e-05/0.005112, allocations: 27.72 kB / 270.8 MB, free: 3.762 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002638/0.005376, allocations: 59.86 kB / 270.9 MB, free: 3.703 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002067/0.005583, allocations: 151.6 kB / 271 MB, free: 3.555 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.874e-05/0.005681, allocations: 25.56 kB / 271.1 MB, free: 3.523 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006687/0.00635, allocations: 0.6629 MB / 271.7 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001345/0.006485, allocations: 71.8 kB / 271.8 MB, free: 2.789 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.497e-05/0.00653, allocations: 12 kB / 271.8 MB, free: 2.777 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.355e-05/0.006573, allocations: 12 kB / 271.8 MB, free: 2.766 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.23e-05/0.006655, allocations: 75.66 kB / 271.9 MB, free: 2.691 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.689e-05/0.006742, allocations: 59.72 kB / 272 MB, free: 2.633 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006618/0.007404, allocations: 358.7 kB / 272.3 MB, free: 2.281 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.209e-06/0.007409, allocations: 3.984 kB / 272.3 MB, free: 2.277 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.184e-06/0.007412, allocations: 0 / 272.3 MB, free: 2.277 MB / 250.7 MB Notification: Performance of Transformations before backend: time 9.477e-06/0.007421, allocations: 0 / 272.3 MB, free: 2.277 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.0009787/0.0084, allocations: 0.8812 MB / 273.2 MB, free: 1.328 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.008446, allocations: 16.86 kB / 273.2 MB, free: 1.312 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001094/0.008556, allocations: 52.66 kB / 273.3 MB, free: 1.262 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002537/0.00881, allocations: 242.8 kB / 273.5 MB, free: 0.9961 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.267e-05/0.008832, allocations: 8.375 kB / 273.5 MB, free: 0.9883 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.816e-05/0.00886, allocations: 8.375 kB / 273.5 MB, free: 0.9805 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003627/0.009223, allocations: 303.2 kB / 273.8 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.757e-06/0.009232, allocations: 192 / 273.8 MB, free: 0.6445 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.263e-05/0.009254, allocations: 4.375 kB / 273.8 MB, free: 0.6406 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.009261, allocations: 3.938 kB / 273.8 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001668/0.009428, allocations: 208.4 kB / 274 MB, free: 412 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006305/0.01006, allocations: 444.1 kB / 274.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001956/0.01025, allocations: 219.5 kB / 274.7 MB, free: 15.68 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001541/0.01041, allocations: 212.1 kB / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.102e-06/0.01041, allocations: 0 / 274.9 MB, free: 15.44 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002701/0.01068, allocations: 375.7 kB / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.303e-06/0.01069, allocations: 0 / 275.2 MB, free: 15.02 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007617/0.01145, allocations: 0.8464 MB / 276.1 MB, free: 14.07 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.943e-05/0.01153, allocations: 199.9 kB / 276.3 MB, free: 13.83 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005892/0.01212, allocations: 0.545 MB / 276.8 MB, free: 13.27 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.502e-05/0.01214, allocations: 29.7 kB / 276.9 MB, free: 13.24 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.882e-05/0.01222, allocations: 167.8 kB / 277 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.056e-05/0.01226, allocations: 31.8 kB / 277.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001148/0.01238, allocations: 103.2 kB / 277.2 MB, free: 12.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001479/0.01252, allocations: 0.504 MB / 277.7 MB, free: 12.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001422/0.01267, allocations: 192.5 kB / 277.8 MB, free: 12.19 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001487/0.01281, allocations: 223.3 kB / 278.1 MB, free: 11.94 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002633/0.01308, allocations: 412.3 kB / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.295e-06/0.01308, allocations: 0 / 278.5 MB, free: 11.46 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007834/0.01386, allocations: 0.6117 MB / 279.1 MB, free: 10.79 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.858e-05/0.01394, allocations: 156.5 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.599e-06/0.01395, allocations: 0 / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.12e-05/0.01396, allocations: 0 / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.454e-05/0.01397, allocations: 0 / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.757e-06/0.01398, allocations: 4 kB / 279.2 MB, free: 10.6 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001128/0.01409, allocations: 20.08 kB / 279.3 MB, free: 10.58 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.464e-05/0.01417, allocations: 97.5 kB / 279.4 MB, free: 10.48 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.0003001/0.01447, allocations: 415 kB / 279.8 MB, free: 10.04 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.533e-05/0.01454, allocations: 59.66 kB / 279.8 MB, free: 9.977 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001016/0.01464, allocations: 63.39 kB / 279.9 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.045e-06/0.01464, allocations: 7.938 kB / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.584e-06/0.01465, allocations: 0 / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.01465, allocations: 0 / 279.9 MB, free: 9.902 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008503/0.0155, allocations: 0.987 MB / 280.9 MB, free: 8.82 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.156e-06/0.0155, allocations: 3.938 kB / 280.9 MB, free: 8.816 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.05e-06/0.01551, allocations: 4 kB / 280.9 MB, free: 8.812 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.136e-06/0.01551, allocations: 4 kB / 280.9 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.97e-05/0.01554, allocations: 23.98 kB / 280.9 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01554, allocations: 0 / 280.9 MB, free: 8.785 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.174e-06/0.01554, allocations: 3.938 kB / 280.9 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006051/0.01615, allocations: 0.8247 MB / 281.7 MB, free: 7.875 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003245/0.01647, allocations: 201.2 kB / 281.9 MB, free: 7.68 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.322e-05/0.01653, allocations: 12 kB / 281.9 MB, free: 7.668 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001285/0.01665, allocations: 11.98 kB / 282 MB, free: 7.656 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.909e-05/0.01675, allocations: 39.97 kB / 282 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.403e-05/0.01685, allocations: 109.4 kB / 282.1 MB, free: 7.508 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003278/0.01718, allocations: 322.8 kB / 282.4 MB, free: 7.195 MB / 266.7 MB Notification: Performance of sort global known variables: time 1e-07/0.01718, allocations: 0 / 282.4 MB, free: 7.195 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003217/0.0175, allocations: 56 kB / 282.5 MB, free: 7.141 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 0.0001335/0.01763, allocations: 119.2 kB / 282.6 MB, free: 7.016 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000518/0.01815, allocations: 0.7048 MB / 283.3 MB, free: 6.184 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.01815, allocations: 4 kB / 283.3 MB, free: 6.18 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003196/0.01847, allocations: 0.5121 MB / 283.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006979/0.01917, allocations: 208.2 kB / 284 MB, free: 5.387 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001083/0.02025, allocations: 0.8442 MB / 284.9 MB, free: 4.48 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.483e-05/0.02035, allocations: 107.8 kB / 285 MB, free: 4.355 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 6.035e-05/0.02041, allocations: 8.969 kB / 285 MB, free: 4.344 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000538/0.02095, allocations: 274 kB / 285.2 MB, free: 4.074 MB / 266.7 MB Notification: Performance of SimCode: time 7.41e-07/0.02095, allocations: 0 / 285.2 MB, free: 4.074 MB / 266.7 MB Notification: Performance of Templates: time 0.01069/0.03164, allocations: 7.356 MB / 292.6 MB, free: 12.66 MB / 282.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.8249067310243845]