Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0009962/0.0009962, allocations: 75.77 kB / 22.45 MB, free: 2.094 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001037/0.001037, allocations: 158.9 kB / 25.75 MB, free: 8.949 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.9207/0.9207, allocations: 158.6 MB / 187.5 MB, free: 2.941 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.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_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.663e-06/1.663e-06, allocations: 0 / 251.1 MB, free: 7.801 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.333e-05/2.5e-05, allocations: 2.312 kB / 251.1 MB, free: 7.797 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002071/0.002096, allocations: 1.553 MB / 252.7 MB, free: 6.23 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.003669, allocations: 0.874 MB / 253.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.857e-05/0.003728, allocations: 0 / 253.5 MB, free: 5.348 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001062/0.003834, allocations: 11.92 kB / 253.6 MB, free: 5.336 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 7.708e-05/0.003911, allocations: 27.73 kB / 253.6 MB, free: 5.309 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002801/0.004191, allocations: 55.81 kB / 253.6 MB, free: 5.254 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004935/0.004684, allocations: 167.6 kB / 253.8 MB, free: 5.09 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.004795, allocations: 17.58 kB / 253.8 MB, free: 5.074 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005212/0.005316, allocations: 0.659 MB / 254.5 MB, free: 4.414 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001241/0.00544, allocations: 79.69 kB / 254.6 MB, free: 4.336 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 3.501e-05/0.005475, allocations: 12 kB / 254.6 MB, free: 4.324 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.667e-05/0.005502, allocations: 8 kB / 254.6 MB, free: 4.316 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.016e-05/0.005582, allocations: 87.69 kB / 254.7 MB, free: 4.23 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 7.841e-05/0.00566, allocations: 59.73 kB / 254.7 MB, free: 4.172 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002877/0.005948, allocations: 362.7 kB / 255.1 MB, free: 3.816 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.355e-06/0.00595, allocations: 0 / 255.1 MB, free: 3.816 MB / 234.7 MB Notification: Performance of FrontEnd: time 6.62e-07/0.005951, allocations: 0 / 255.1 MB, free: 3.816 MB / 234.7 MB Notification: Performance of Transformations before backend: time 4.849e-06/0.005956, allocations: 0 / 255.1 MB, free: 3.816 MB / 234.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.0006874/0.006643, allocations: 0.8735 MB / 255.9 MB, free: 2.875 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.174e-05/0.006695, allocations: 11.98 kB / 256 MB, free: 2.863 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.199e-05/0.006787, allocations: 56.66 kB / 256 MB, free: 2.809 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002265/0.007014, allocations: 238.8 kB / 256.2 MB, free: 2.547 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.368e-05/0.007037, allocations: 8.375 kB / 256.3 MB, free: 2.539 MB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.535e-05/0.007063, allocations: 16.38 kB / 256.3 MB, free: 2.523 MB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003373/0.0074, allocations: 315.3 kB / 256.6 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.432e-06/0.007406, allocations: 192 / 256.6 MB, free: 2.176 MB / 234.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.063e-05/0.007427, allocations: 4.375 kB / 256.6 MB, free: 2.172 MB / 234.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.624e-06/0.007435, allocations: 3.938 kB / 256.6 MB, free: 2.168 MB / 234.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.007577, allocations: 220.4 kB / 256.8 MB, free: 1.918 MB / 234.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005852/0.008162, allocations: 0.5345 MB / 257.3 MB, free: 1.348 MB / 234.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001786/0.008341, allocations: 243.5 kB / 257.6 MB, free: 1.066 MB / 234.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001414/0.008482, allocations: 228.2 kB / 257.8 MB, free: 0.8086 MB / 234.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.163e-06/0.00849, allocations: 4 kB / 257.8 MB, free: 0.8047 MB / 234.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002512/0.008741, allocations: 384.8 kB / 258.2 MB, free: 380 kB / 234.7 MB Notification: Performance of pre-optimization done (n=14): time 1.182e-06/0.008742, allocations: 0 / 258.2 MB, free: 380 kB / 234.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007322/0.009474, allocations: 0.8889 MB / 259.1 MB, free: 15.39 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.992e-05/0.009544, allocations: 199.9 kB / 259.3 MB, free: 15.15 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000588/0.01013, allocations: 0.67 MB / 259.9 MB, free: 14.46 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.086e-05/0.01015, allocations: 29.7 kB / 260 MB, free: 14.43 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.349e-05/0.01023, allocations: 167.8 kB / 260.1 MB, free: 14.26 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.443e-05/0.01026, allocations: 35.75 kB / 260.2 MB, free: 14.22 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.781e-05/0.01035, allocations: 103.2 kB / 260.3 MB, free: 14.11 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.000269/0.01062, allocations: 0.5001 MB / 260.8 MB, free: 13.6 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001345/0.01075, allocations: 220.5 kB / 261 MB, free: 13.36 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001417/0.01089, allocations: 235.8 kB / 261.2 MB, free: 13.09 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002335/0.01113, allocations: 424.2 kB / 261.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.793e-06/0.01113, allocations: 0 / 261.6 MB, free: 12.61 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004451/0.01157, allocations: 0.6312 MB / 262.2 MB, free: 11.91 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.249e-05/0.01165, allocations: 160.5 kB / 262.4 MB, free: 11.72 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01165, allocations: 4 kB / 262.4 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.234e-05/0.01166, allocations: 0 / 262.4 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.915e-05/0.01168, allocations: 0 / 262.4 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.059e-06/0.01169, allocations: 0 / 262.4 MB, free: 11.71 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000101/0.01179, allocations: 16 kB / 262.4 MB, free: 11.7 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.212e-05/0.01186, allocations: 97.42 kB / 262.5 MB, free: 11.61 MB / 250.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.0002456/0.01211, allocations: 423 kB / 262.9 MB, free: 11.15 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.488e-05/0.01216, allocations: 63.66 kB / 263 MB, free: 11.09 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.117e-05/0.01223, allocations: 63.39 kB / 263.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.383e-06/0.01223, allocations: 4 kB / 263.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.01224, allocations: 0 / 263.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.136e-06/0.01224, allocations: 0 / 263.1 MB, free: 11.02 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008089/0.01305, allocations: 1.127 MB / 264.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-06/0.01305, allocations: 0 / 264.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.818e-06/0.01306, allocations: 0 / 264.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-06/0.01306, allocations: 0 / 264.2 MB, free: 9.789 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.368e-05/0.01308, allocations: 19.98 kB / 264.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.82e-07/0.01308, allocations: 0 / 264.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.52e-07/0.01308, allocations: 0 / 264.2 MB, free: 9.77 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005427/0.01363, allocations: 0.8676 MB / 265.1 MB, free: 8.82 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002207/0.01385, allocations: 189.4 kB / 265.3 MB, free: 8.633 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.178e-05/0.01389, allocations: 12 kB / 265.3 MB, free: 8.621 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.578e-05/0.01397, allocations: 12.11 kB / 265.3 MB, free: 8.609 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000114/0.01409, allocations: 71.86 kB / 265.4 MB, free: 8.539 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.55e-05/0.01415, allocations: 113.4 kB / 265.5 MB, free: 8.426 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003484/0.0145, allocations: 450.7 kB / 265.9 MB, free: 7.988 MB / 250.7 MB Notification: Performance of sort global known variables: time 8e-08/0.0145, allocations: 0 / 265.9 MB, free: 7.988 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0001962/0.0147, allocations: 48 kB / 265.9 MB, free: 7.941 MB / 250.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.412e-05/0.01479, allocations: 119.2 kB / 266.1 MB, free: 7.812 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004432/0.01524, allocations: 0.7476 MB / 266.8 MB, free: 6.938 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01524, allocations: 0 / 266.8 MB, free: 6.938 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002416/0.01548, allocations: 0.5206 MB / 267.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006377/0.01612, allocations: 205.5 kB / 267.5 MB, free: 6.125 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007942/0.01691, allocations: 0.8745 MB / 268.4 MB, free: 5.195 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.707e-05/0.01699, allocations: 99.75 kB / 268.5 MB, free: 5.078 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 3.472e-05/0.01702, allocations: 16.95 kB / 268.5 MB, free: 5.059 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.481e-05/0.01705, allocations: 16.5 kB / 268.5 MB, free: 5.043 MB / 250.7 MB Notification: Performance of SimCode: time 7.41e-07/0.01705, allocations: 0 / 268.5 MB, free: 5.043 MB / 250.7 MB Notification: Performance of Templates: time 0.008173/0.02522, allocations: 8.027 MB / 276.6 MB, free: 12.88 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/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.895802954910323]