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.001187/0.001187, allocations: 75.75 kB / 21.97 MB, free: 2.605 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.001274/0.001274, allocations: 167.7 kB / 25.33 MB, free: 9.449 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.9478/0.9478, allocations: 158.6 MB / 187.2 MB, free: 2.551 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.533e-06/1.533e-06, allocations: 0 / 251 MB, free: 3.594 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.063e-05/2.216e-05, allocations: 2.312 kB / 251 MB, free: 3.59 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001938/0.00196, allocations: 1.552 MB / 252.6 MB, free: 2.023 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.001637/0.003597, allocations: 0.8818 MB / 253.5 MB, free: 1.133 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.917e-05/0.003656, allocations: 0 / 253.5 MB, free: 1.133 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 9.791e-05/0.003754, allocations: 15.8 kB / 253.5 MB, free: 1.117 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 8.545e-05/0.003839, allocations: 23.86 kB / 253.5 MB, free: 1.094 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002685/0.004108, allocations: 47.88 kB / 253.6 MB, free: 1.047 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001946/0.004302, allocations: 167.6 kB / 253.7 MB, free: 0.8828 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.004431, allocations: 25.52 kB / 253.8 MB, free: 0.8594 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006004/0.005032, allocations: 0.6513 MB / 254.4 MB, free: 212 kB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001304/0.005162, allocations: 83.67 kB / 254.5 MB, free: 128 kB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.103e-05/0.005203, allocations: 16 kB / 254.5 MB, free: 112 kB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.877e-05/0.005232, allocations: 12 kB / 254.5 MB, free: 100 kB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 8.211e-05/0.005314, allocations: 71.72 kB / 254.6 MB, free: 28 kB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 9.117e-05/0.005405, allocations: 71.64 kB / 254.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002927/0.005698, allocations: 350.8 kB / 255 MB, free: 15.61 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.005702, allocations: 0 / 255 MB, free: 15.61 MB / 250.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.005702, allocations: 0 / 255 MB, free: 15.61 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.863e-06/0.005709, allocations: 0 / 255 MB, free: 15.61 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.0007695/0.006479, allocations: 0.8735 MB / 255.9 MB, free: 14.67 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.738e-05/0.006526, allocations: 15.97 kB / 255.9 MB, free: 14.66 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.743e-05/0.006624, allocations: 64.66 kB / 256 MB, free: 14.59 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004187/0.007042, allocations: 250.7 kB / 256.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.986e-05/0.007072, allocations: 4.375 kB / 256.2 MB, free: 14.32 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.905e-05/0.007101, allocations: 12.38 kB / 256.2 MB, free: 14.3 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003756/0.007477, allocations: 311.3 kB / 256.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.169e-05/0.007489, allocations: 4.172 kB / 256.5 MB, free: 13.96 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.06e-05/0.007509, allocations: 4.375 kB / 256.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.398e-06/0.007519, allocations: 3.938 kB / 256.5 MB, free: 13.95 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001385/0.007657, allocations: 220.4 kB / 256.7 MB, free: 13.7 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006309/0.008288, allocations: 0.5345 MB / 257.3 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001831/0.008471, allocations: 239.5 kB / 257.5 MB, free: 12.86 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.008613, allocations: 232.1 kB / 257.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.214e-06/0.008621, allocations: 0 / 257.7 MB, free: 12.59 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002561/0.008877, allocations: 388.7 kB / 258.1 MB, free: 12.16 MB / 250.7 MB Notification: Performance of pre-optimization done (n=14): time 1.653e-06/0.008878, allocations: 0 / 258.1 MB, free: 12.16 MB / 250.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007845/0.009663, allocations: 0.8923 MB / 259 MB, free: 11.17 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.474e-05/0.009738, allocations: 187.9 kB / 259.2 MB, free: 10.94 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007402/0.01048, allocations: 0.6778 MB / 259.9 MB, free: 10.25 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 2.265e-05/0.0105, allocations: 29.7 kB / 259.9 MB, free: 10.21 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.929e-05/0.01057, allocations: 167.8 kB / 260.1 MB, free: 10.04 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.052e-05/0.0106, allocations: 35.86 kB / 260.1 MB, free: 10.01 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.886e-05/0.01069, allocations: 107.1 kB / 260.2 MB, free: 9.895 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.01081, allocations: 0.5001 MB / 260.7 MB, free: 9.383 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001305/0.01094, allocations: 212.5 kB / 260.9 MB, free: 9.145 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001316/0.01107, allocations: 235.8 kB / 261.1 MB, free: 8.875 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002348/0.0113, allocations: 427.2 kB / 261.6 MB, free: 8.391 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.01131, allocations: 4 kB / 261.6 MB, free: 8.387 MB / 250.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004406/0.01175, allocations: 0.6313 MB / 262.2 MB, free: 7.688 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.783e-05/0.01182, allocations: 151.5 kB / 262.3 MB, free: 7.512 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.142e-06/0.01183, allocations: 4 kB / 262.3 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.548e-05/0.01185, allocations: 0 / 262.3 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.859e-05/0.01186, allocations: 0 / 262.3 MB, free: 7.508 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.01187, allocations: 3.938 kB / 262.3 MB, free: 7.504 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001026/0.01197, allocations: 23.92 kB / 262.4 MB, free: 7.48 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.153e-05/0.01204, allocations: 97.44 kB / 262.5 MB, free: 7.387 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.0002491/0.01229, allocations: 415.1 kB / 262.9 MB, free: 6.938 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.246e-05/0.01235, allocations: 63.66 kB / 262.9 MB, free: 6.875 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.215e-05/0.01243, allocations: 63.39 kB / 263 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.01243, allocations: 0 / 263 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.01244, allocations: 0 / 263 MB, free: 6.812 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.36e-06/0.01245, allocations: 4 kB / 263 MB, free: 6.809 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009518/0.0134, allocations: 1.119 MB / 264.1 MB, free: 5.586 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.0134, allocations: 0 / 264.1 MB, free: 5.586 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.671e-06/0.01341, allocations: 0 / 264.1 MB, free: 5.586 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.01341, allocations: 3.984 kB / 264.1 MB, free: 5.582 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.558e-05/0.01344, allocations: 24 kB / 264.1 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.01344, allocations: 0 / 264.1 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.01344, allocations: 3.984 kB / 264.2 MB, free: 5.555 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005795/0.01402, allocations: 0.8598 MB / 265 MB, free: 4.613 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002374/0.01426, allocations: 189.4 kB / 265.2 MB, free: 4.426 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.38e-05/0.0143, allocations: 15.98 kB / 265.2 MB, free: 4.41 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.245e-05/0.01439, allocations: 12.19 kB / 265.2 MB, free: 4.398 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001283/0.01452, allocations: 67.92 kB / 265.3 MB, free: 4.332 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7e-05/0.01459, allocations: 109.4 kB / 265.4 MB, free: 4.223 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.0003681/0.01496, allocations: 454.7 kB / 265.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01496, allocations: 0 / 265.8 MB, free: 3.781 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002169/0.01518, allocations: 52 kB / 265.9 MB, free: 3.73 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 0.0001128/0.01529, allocations: 115.2 kB / 266 MB, free: 3.605 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007227/0.01601, allocations: 0.7515 MB / 266.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.01602, allocations: 0 / 266.8 MB, free: 2.727 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002908/0.01631, allocations: 0.5167 MB / 267.3 MB, free: 2.113 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005331/0.01684, allocations: 216.2 kB / 267.5 MB, free: 1.914 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008954/0.01774, allocations: 0.8629 MB / 268.3 MB, free: 0.9922 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.294e-05/0.01782, allocations: 103.8 kB / 268.4 MB, free: 0.8711 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 5.459e-05/0.01787, allocations: 8.969 kB / 268.5 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.315e-05/0.01791, allocations: 20.5 kB / 268.5 MB, free: 0.8398 MB / 250.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01791, allocations: 3.938 kB / 268.5 MB, free: 0.8359 MB / 250.7 MB Notification: Performance of Templates: time 0.009169/0.02708, allocations: 8.031 MB / 276.5 MB, free: 8.645 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: 3.0952643142081797]