Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002052/0.002052, allocations: 103.5 kB / 20.97 MB, free: 3.445 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002707/0.002707, allocations: 156.8 kB / 24.27 MB, free: 152 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.559/1.559, allocations: 177 MB / 204.5 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5014,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.442e-06/1.442e-06, allocations: 0 / 272.2 MB, free: 1.812 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.492e-05/2.636e-05, allocations: 2.312 kB / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003015/0.003041, allocations: 1.548 MB / 273.7 MB, free: 256 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.002245/0.005287, allocations: 0.8692 MB / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.717e-05/0.005354, allocations: 0 / 274.6 MB, free: 15.38 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.005484, allocations: 19.8 kB / 274.6 MB, free: 15.36 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001114/0.005596, allocations: 15.88 kB / 274.6 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003175/0.005913, allocations: 67.8 kB / 274.7 MB, free: 15.27 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002873/0.006201, allocations: 155.6 kB / 274.9 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001091/0.00631, allocations: 21.53 kB / 274.9 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009076/0.007217, allocations: 0.6513 MB / 275.5 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001925/0.00741, allocations: 75.73 kB / 275.6 MB, free: 14.37 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 9.147e-05/0.007501, allocations: 12 kB / 275.6 MB, free: 14.36 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.461e-05/0.007566, allocations: 12 kB / 275.6 MB, free: 14.35 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001229/0.007689, allocations: 79.64 kB / 275.7 MB, free: 14.27 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.007822, allocations: 63.72 kB / 275.8 MB, free: 14.21 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008426/0.008665, allocations: 462.5 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.269e-06/0.00867, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.008671, allocations: 4 kB / 276.2 MB, free: 13.75 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.104e-05/0.008682, allocations: 0 / 276.2 MB, free: 13.75 MB / 266.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.001273/0.009954, allocations: 0.9005 MB / 277.1 MB, free: 12.78 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.015e-05/0.009995, allocations: 11.98 kB / 277.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001398/0.01013, allocations: 52.66 kB / 277.2 MB, free: 12.72 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004157/0.01055, allocations: 246.8 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.404e-05/0.01057, allocations: 4.375 kB / 277.4 MB, free: 12.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.815e-05/0.01061, allocations: 8.375 kB / 277.4 MB, free: 12.44 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005224/0.01113, allocations: 334.5 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.758e-06/0.01114, allocations: 192 / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.873e-05/0.01117, allocations: 4.375 kB / 277.8 MB, free: 12.07 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.237e-06/0.01118, allocations: 11.94 kB / 277.8 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003351/0.01152, allocations: 228.5 kB / 278 MB, free: 11.8 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001169/0.01269, allocations: 0.5853 MB / 278.6 MB, free: 11.18 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003796/0.01307, allocations: 259.5 kB / 278.9 MB, free: 10.89 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003367/0.0134, allocations: 252.1 kB / 279.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.277e-05/0.01342, allocations: 0 / 279.1 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005573/0.01397, allocations: 420.6 kB / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.363e-06/0.01397, allocations: 0 / 279.5 MB, free: 10.14 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.001511/0.01549, allocations: 0.9403 MB / 280.5 MB, free: 9.102 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001503/0.01564, allocations: 191.9 kB / 280.6 MB, free: 8.871 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001295/0.01693, allocations: 0.756 MB / 281.4 MB, free: 8.102 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.223e-05/0.01697, allocations: 29.7 kB / 281.4 MB, free: 8.066 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.01712, allocations: 171.8 kB / 281.6 MB, free: 7.891 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.043e-05/0.01718, allocations: 39.88 kB / 281.6 MB, free: 7.852 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001828/0.01737, allocations: 111.1 kB / 281.7 MB, free: 7.734 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002917/0.01766, allocations: 0.5079 MB / 282.2 MB, free: 7.215 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002982/0.01796, allocations: 228.5 kB / 282.5 MB, free: 6.961 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005394/0.0185, allocations: 259.8 kB / 282.7 MB, free: 6.668 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005351/0.01903, allocations: 464.3 kB / 283.2 MB, free: 6.145 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01903, allocations: 0 / 283.2 MB, free: 6.145 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0009699/0.02, allocations: 0.6654 MB / 283.8 MB, free: 5.414 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001335/0.02014, allocations: 156.5 kB / 284 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.48e-06/0.02014, allocations: 0 / 284 MB, free: 5.23 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.615e-05/0.02017, allocations: 7.938 kB / 284 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.939e-05/0.02019, allocations: 0 / 284 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.809e-06/0.02019, allocations: 0 / 284 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001541/0.02035, allocations: 15.98 kB / 284 MB, free: 5.207 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001292/0.02048, allocations: 101.4 kB / 284.1 MB, free: 5.109 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.0004612/0.02094, allocations: 435 kB / 284.5 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001042/0.02104, allocations: 59.66 kB / 284.6 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001215/0.02116, allocations: 59.41 kB / 284.7 MB, free: 4.527 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.02117, allocations: 4 kB / 284.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.087e-06/0.02117, allocations: 0 / 284.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.02117, allocations: 0 / 284.7 MB, free: 4.523 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001767/0.02294, allocations: 1.213 MB / 285.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.793e-06/0.02294, allocations: 0 / 285.9 MB, free: 3.207 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.15e-05/0.02295, allocations: 4.125 kB / 285.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.655e-06/0.02296, allocations: 0 / 285.9 MB, free: 3.203 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.672e-05/0.023, allocations: 31.98 kB / 285.9 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.02301, allocations: 0 / 285.9 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.854e-06/0.02301, allocations: 0 / 285.9 MB, free: 3.172 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001198/0.0242, allocations: 0.9065 MB / 286.8 MB, free: 2.184 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004502/0.02466, allocations: 201.3 kB / 287 MB, free: 1.984 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.912e-05/0.02473, allocations: 12 kB / 287 MB, free: 1.973 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001424/0.02488, allocations: 8 kB / 287 MB, free: 1.965 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001982/0.02507, allocations: 71.91 kB / 287.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.00013/0.0252, allocations: 105.4 kB / 287.2 MB, free: 1.789 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0006856/0.02589, allocations: 478.7 kB / 287.7 MB, free: 1.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02589, allocations: 4 kB / 287.7 MB, free: 1.32 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000345/0.02624, allocations: 52 kB / 287.7 MB, free: 1.27 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.0001766/0.02641, allocations: 107.2 kB / 287.8 MB, free: 1.152 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.02743, allocations: 0.8101 MB / 288.6 MB, free: 220 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.02743, allocations: 0 / 288.6 MB, free: 220 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00064/0.02807, allocations: 0.5559 MB / 289.2 MB, free: 15.56 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009658/0.02903, allocations: 214.2 kB / 289.4 MB, free: 15.37 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001849/0.03088, allocations: 0.8872 MB / 290.3 MB, free: 14.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003181/0.0312, allocations: 199.6 kB / 290.5 MB, free: 14.2 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 8.594e-05/0.03129, allocations: 16.94 kB / 290.5 MB, free: 14.18 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.076e-05/0.03134, allocations: 20.5 kB / 290.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of SimCode: time 1.102e-06/0.03134, allocations: 3.938 kB / 290.5 MB, free: 14.16 MB / 282.7 MB Notification: Performance of Templates: time 0.01835/0.04969, allocations: 8.007 MB / 298.5 MB, free: 6.066 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.595257895998657]