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.001281/0.001281, allocations: 100 kB / 21.18 MB, free: 0.6484 MB / 14.72 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.001407/0.001407, allocations: 185.9 kB / 24.45 MB, free: 3.961 MB / 14.72 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.427/1.427, allocations: 225.7 MB / 253.3 MB, free: 12.81 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001613/0.001613, allocations: 43.92 kB / 371.6 MB, free: 9.273 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2458/0.2474, allocations: 52.18 MB / 423.8 MB, free: 14.48 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002746/0.2501, allocations: 1.521 MB / 425.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001946/0.2521, allocations: 0.8109 MB / 426.1 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.966e-05/0.2521, allocations: 4 kB / 426.1 MB, free: 12.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.783e-05/0.2522, allocations: 19.8 kB / 426.2 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.012e-05/0.2523, allocations: 23.8 kB / 426.2 MB, free: 12.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002823/0.2526, allocations: 59.88 kB / 426.3 MB, free: 12.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002478/0.2529, allocations: 151.7 kB / 426.4 MB, free: 11.88 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001157/0.253, allocations: 25.55 kB / 426.4 MB, free: 11.85 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000742/0.2537, allocations: 0.6356 MB / 427.1 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000159/0.2539, allocations: 87.61 kB / 427.1 MB, free: 11.13 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.184e-05/0.2539, allocations: 16 kB / 427.2 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.808e-05/0.254, allocations: 12 kB / 427.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.799e-05/0.2541, allocations: 67.7 kB / 427.2 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000126/0.2542, allocations: 99.22 kB / 427.3 MB, free: 10.94 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004957/0.2547, allocations: 463.7 kB / 427.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.438e-06/0.2547, allocations: 0 / 427.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2547, allocations: 0 / 427.8 MB, free: 10.49 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.2547, allocations: 0 / 427.8 MB, free: 10.49 MB / 334.1 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.000893/0.2556, allocations: 0.7502 MB / 428.5 MB, free: 9.676 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.742e-05/0.2556, allocations: 12.03 kB / 428.6 MB, free: 9.664 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.976e-05/0.2557, allocations: 48.59 kB / 428.6 MB, free: 9.617 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003387/0.2561, allocations: 236.8 kB / 428.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.304e-05/0.2561, allocations: 8.375 kB / 428.8 MB, free: 9.352 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.2561, allocations: 12.38 kB / 428.8 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004472/0.2566, allocations: 321.7 kB / 429.2 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2566, allocations: 3.938 kB / 429.2 MB, free: 8.988 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.74e-05/0.2566, allocations: 4 kB / 429.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.948e-06/0.2566, allocations: 0 / 429.2 MB, free: 8.984 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.2569, allocations: 228.5 kB / 429.4 MB, free: 8.73 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007655/0.2577, allocations: 432.1 kB / 429.8 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003113/0.258, allocations: 251 kB / 430.1 MB, free: 7.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002573/0.2582, allocations: 237.4 kB / 430.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.162e-05/0.2582, allocations: 0 / 430.3 MB, free: 7.727 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005198/0.2588, allocations: 387.1 kB / 430.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.272e-06/0.2588, allocations: 0 / 430.7 MB, free: 7.293 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001198/0.26, allocations: 0.9128 MB / 431.6 MB, free: 6.281 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001381/0.2601, allocations: 199.9 kB / 431.8 MB, free: 6.043 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007427/0.2608, allocations: 0.5562 MB / 432.3 MB, free: 5.477 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.995e-05/0.2609, allocations: 33.7 kB / 432.4 MB, free: 5.438 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.434e-05/0.261, allocations: 117.1 kB / 432.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.477e-05/0.261, allocations: 35.75 kB / 432.5 MB, free: 5.281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001381/0.2612, allocations: 93.55 kB / 432.6 MB, free: 5.184 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001583/0.2613, allocations: 338.7 kB / 432.9 MB, free: 4.844 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.2616, allocations: 228.5 kB / 433.2 MB, free: 4.59 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002703/0.2619, allocations: 242.2 kB / 433.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004703/0.2623, allocations: 442.7 kB / 433.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.395e-06/0.2623, allocations: 0 / 433.8 MB, free: 3.816 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008448/0.2632, allocations: 0.6508 MB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001313/0.2633, allocations: 156.5 kB / 434.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.2633, allocations: 4.031 kB / 434.6 MB, free: 2.91 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.041e-05/0.2633, allocations: 4 kB / 434.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.069e-05/0.2634, allocations: 64 / 434.6 MB, free: 2.906 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.037e-06/0.2634, allocations: 4 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001629/0.2635, allocations: 15.98 kB / 434.7 MB, free: 2.887 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001192/0.2637, allocations: 105.2 kB / 434.8 MB, free: 2.785 MB / 334.1 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.0005229/0.2642, allocations: 411.9 kB / 435.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.325e-05/0.2643, allocations: 47.72 kB / 435.2 MB, free: 2.297 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001279/0.2644, allocations: 67.41 kB / 435.3 MB, free: 2.234 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.493e-06/0.2644, allocations: 4 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.791e-06/0.2644, allocations: 4 kB / 435.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.2644, allocations: 0 / 435.3 MB, free: 2.227 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001351/0.2657, allocations: 1.018 MB / 436.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.224e-06/0.2657, allocations: 0 / 436.3 MB, free: 1.109 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.638e-06/0.2658, allocations: 3.984 kB / 436.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.915e-06/0.2658, allocations: 0 / 436.3 MB, free: 1.105 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.991e-05/0.2658, allocations: 20 kB / 436.3 MB, free: 1.086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.634e-06/0.2658, allocations: 3.984 kB / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2658, allocations: 0 / 436.3 MB, free: 1.082 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009737/0.2668, allocations: 0.8199 MB / 437.2 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004702/0.2673, allocations: 221.3 kB / 437.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.207e-05/0.2673, allocations: 12 kB / 437.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001492/0.2675, allocations: 11.98 kB / 437.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001844/0.2677, allocations: 55.92 kB / 437.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001212/0.2678, allocations: 97.23 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005569/0.2683, allocations: 430.8 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2683, allocations: 0 / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.2686, allocations: 48 kB / 438 MB, free: 15.34 MB / 350.1 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.0001607/0.2688, allocations: 115.3 kB / 438.1 MB, free: 15.22 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008264/0.2696, allocations: 0.7674 MB / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.846e-06/0.2696, allocations: 0 / 438.9 MB, free: 14.33 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004859/0.2701, allocations: 0.521 MB / 439.4 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008413/0.271, allocations: 190.5 kB / 439.6 MB, free: 13.54 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001453/0.2724, allocations: 0.9592 MB / 440.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002942/0.2727, allocations: 223.4 kB / 440.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.796e-05/0.2727, allocations: 15.44 kB / 440.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.2727, allocations: 0 / 440.8 MB, free: 12.26 MB / 350.1 MB Notification: Performance of Templates: time 0.007251/0.28, allocations: 4.283 MB / 445.1 MB, free: 7.883 MB / 350.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 8.105847907718271]