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.001121/0.001121, allocations: 76.08 kB / 21.18 MB, free: 3.383 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.001073/0.001073, allocations: 141.1 kB / 24.54 MB, free: 28 kB / 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.9999/0.9999, allocations: 173.3 MB / 201.1 MB, free: 9.301 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.813e-06/1.813e-06, allocations: 0 / 268 MB, free: 6.41 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.952e-05/2.133e-05, allocations: 2.312 kB / 268 MB, free: 6.406 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00185/0.001871, allocations: 1.561 MB / 269.6 MB, free: 4.832 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001493/0.003364, allocations: 0.8458 MB / 270.4 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.356e-05/0.003418, allocations: 0 / 270.4 MB, free: 3.98 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001056/0.003523, allocations: 11.86 kB / 270.4 MB, free: 3.969 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 8.874e-05/0.003612, allocations: 35.72 kB / 270.4 MB, free: 3.934 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002633/0.003876, allocations: 47.89 kB / 270.5 MB, free: 3.887 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000186/0.004062, allocations: 159.7 kB / 270.6 MB, free: 3.73 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001004/0.004162, allocations: 17.58 kB / 270.7 MB, free: 3.707 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005273/0.004689, allocations: 0.6668 MB / 271.3 MB, free: 3.039 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001283/0.004818, allocations: 67.81 kB / 271.4 MB, free: 2.973 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.004856, allocations: 15.94 kB / 271.4 MB, free: 2.957 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.004e-05/0.004886, allocations: 8 kB / 271.4 MB, free: 2.949 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.53e-05/0.004961, allocations: 75.72 kB / 271.5 MB, free: 2.875 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.205e-05/0.005043, allocations: 67.7 kB / 271.6 MB, free: 2.809 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000293/0.005336, allocations: 354.7 kB / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.005339, allocations: 0 / 271.9 MB, free: 2.461 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.11e-07/0.005339, allocations: 4 kB / 271.9 MB, free: 2.457 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.982e-06/0.005345, allocations: 0 / 271.9 MB, free: 2.457 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.0008062/0.006152, allocations: 0.8774 MB / 272.8 MB, free: 1.512 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.514e-05/0.006207, allocations: 8.922 kB / 272.8 MB, free: 1.504 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001152/0.006322, allocations: 56.66 kB / 272.9 MB, free: 1.449 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000274/0.006596, allocations: 246.7 kB / 273.1 MB, free: 1.18 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.85e-05/0.006624, allocations: 8.375 kB / 273.1 MB, free: 1.172 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.68e-05/0.006651, allocations: 12.38 kB / 273.1 MB, free: 1.16 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003752/0.007027, allocations: 307.3 kB / 273.4 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.007036, allocations: 4.172 kB / 273.4 MB, free: 0.8164 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.684e-05/0.007063, allocations: 12.36 kB / 273.4 MB, free: 0.8047 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.235e-06/0.007071, allocations: 7.938 kB / 273.4 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001509/0.007222, allocations: 212.5 kB / 273.6 MB, free: 0.5586 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006492/0.007871, allocations: 0.5345 MB / 274.2 MB, free: 15.98 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000191/0.008062, allocations: 243.5 kB / 274.4 MB, free: 15.7 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002974/0.008359, allocations: 228.1 kB / 274.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.334e-06/0.008367, allocations: 0 / 274.6 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002627/0.008629, allocations: 388.8 kB / 275 MB, free: 15.01 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.773e-06/0.008631, allocations: 4 kB / 275 MB, free: 15 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007286/0.00936, allocations: 0.8892 MB / 275.9 MB, free: 14.02 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.197e-05/0.009432, allocations: 191.9 kB / 276.1 MB, free: 13.79 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005855/0.01002, allocations: 0.67 MB / 276.8 MB, free: 13.11 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.516e-05/0.01004, allocations: 29.7 kB / 276.8 MB, free: 13.07 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.444e-05/0.01013, allocations: 163.9 kB / 277 MB, free: 12.9 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.232e-05/0.01017, allocations: 35.73 kB / 277 MB, free: 12.87 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001068/0.01028, allocations: 103.2 kB / 277.1 MB, free: 12.76 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001537/0.01043, allocations: 0.4962 MB / 277.6 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001582/0.01059, allocations: 216.5 kB / 277.8 MB, free: 12.01 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001662/0.01075, allocations: 239.2 kB / 278 MB, free: 11.74 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002632/0.01102, allocations: 424.4 kB / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.063e-06/0.01102, allocations: 64 / 278.5 MB, free: 11.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004874/0.01151, allocations: 0.6429 MB / 279.1 MB, free: 10.54 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.076e-05/0.01159, allocations: 152.6 kB / 279.2 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.019e-06/0.01159, allocations: 7.938 kB / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.259e-05/0.0116, allocations: 0 / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.266e-05/0.01163, allocations: 0 / 279.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.999e-06/0.01163, allocations: 4.031 kB / 279.3 MB, free: 10.35 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.01174, allocations: 15.98 kB / 279.3 MB, free: 10.34 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.692e-05/0.01182, allocations: 97.48 kB / 279.4 MB, free: 10.24 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.0002604/0.01208, allocations: 415 kB / 279.8 MB, free: 9.793 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.504e-05/0.01213, allocations: 63.64 kB / 279.8 MB, free: 9.73 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.446e-05/0.01221, allocations: 59.41 kB / 279.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.853e-06/0.01221, allocations: 0 / 279.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.01221, allocations: 0 / 279.9 MB, free: 9.668 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.238e-06/0.01222, allocations: 4 kB / 279.9 MB, free: 9.664 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008659/0.01308, allocations: 1.131 MB / 281 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.994e-06/0.01309, allocations: 0 / 281 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.358e-06/0.01309, allocations: 0 / 281 MB, free: 8.43 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.278e-06/0.01309, allocations: 3.984 kB / 281 MB, free: 8.426 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.799e-05/0.01312, allocations: 20 kB / 281 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.294e-06/0.01312, allocations: 0 / 281 MB, free: 8.406 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.397e-06/0.01313, allocations: 3.984 kB / 281.1 MB, free: 8.402 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007962/0.01392, allocations: 0.8559 MB / 281.9 MB, free: 7.465 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.01415, allocations: 189.4 kB / 282.1 MB, free: 7.281 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.67e-05/0.0142, allocations: 12 kB / 282.1 MB, free: 7.27 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.352e-05/0.01428, allocations: 15.98 kB / 282.1 MB, free: 7.254 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001206/0.0144, allocations: 67.92 kB / 282.2 MB, free: 7.188 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.492e-05/0.01448, allocations: 105.4 kB / 282.3 MB, free: 7.082 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003706/0.01485, allocations: 458.6 kB / 282.7 MB, free: 6.637 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.01485, allocations: 0 / 282.7 MB, free: 6.637 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000209/0.01506, allocations: 48 kB / 282.8 MB, free: 6.59 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.743e-05/0.01515, allocations: 119.3 kB / 282.9 MB, free: 6.465 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004739/0.01563, allocations: 0.7515 MB / 283.7 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.01563, allocations: 0 / 283.7 MB, free: 5.586 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002572/0.01589, allocations: 0.5276 MB / 284.2 MB, free: 4.965 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004874/0.01637, allocations: 216.6 kB / 284.4 MB, free: 4.77 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000843/0.01722, allocations: 0.856 MB / 285.2 MB, free: 3.852 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.041e-05/0.0173, allocations: 103.8 kB / 285.3 MB, free: 3.73 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.247e-05/0.01735, allocations: 12.97 kB / 285.4 MB, free: 3.715 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.807e-05/0.01738, allocations: 16.5 kB / 285.4 MB, free: 3.699 MB / 266.7 MB Notification: Performance of SimCode: time 9.11e-07/0.01738, allocations: 4 kB / 285.4 MB, free: 3.695 MB / 266.7 MB Notification: Performance of Templates: time 0.009417/0.0268, allocations: 8.499 MB / 293.9 MB, free: 11.14 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.924083158839494]