Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_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.0009494/0.0009494, allocations: 80.41 kB / 22.21 MB, free: 2.289 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.001062/0.001062, allocations: 166 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9163/0.9163, allocations: 177.1 MB / 206 MB, free: 4.535 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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_4.1.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.1.0_Modelica.Electrical.Digital.Examples.MUX2x1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.153e-06/1.153e-06, allocations: 0 / 274.2 MB, free: 4.43 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.073e-05/2.188e-05, allocations: 6.25 kB / 274.2 MB, free: 4.422 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.001878/0.0019, allocations: 1.561 MB / 275.7 MB, free: 2.867 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001337/0.003236, allocations: 0.8668 MB / 276.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.97e-05/0.003286, allocations: 0.625 kB / 276.6 MB, free: 1.996 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 8.837e-05/0.003374, allocations: 15.86 kB / 276.6 MB, free: 1.98 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.977e-05/0.003454, allocations: 30.25 kB / 276.7 MB, free: 1.953 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002402/0.003694, allocations: 55.88 kB / 276.7 MB, free: 1.898 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001742/0.003869, allocations: 155.6 kB / 276.9 MB, free: 1.746 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.142e-05/0.00396, allocations: 25.5 kB / 276.9 MB, free: 1.715 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005156/0.004476, allocations: 0.6567 MB / 277.5 MB, free: 1.059 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001117/0.004587, allocations: 75.69 kB / 277.6 MB, free: 0.9844 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.226e-05/0.00462, allocations: 8 kB / 277.6 MB, free: 0.9766 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.321e-05/0.004643, allocations: 12 kB / 277.6 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.014e-05/0.004713, allocations: 80.42 kB / 277.7 MB, free: 0.8867 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 7.165e-05/0.004785, allocations: 59.73 kB / 277.8 MB, free: 0.8281 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002553/0.00504, allocations: 355.2 kB / 278.1 MB, free: 492 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.695e-06/0.005043, allocations: 0 / 278.1 MB, free: 492 kB / 250.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.005044, allocations: 8.594 kB / 278.1 MB, free: 484 kB / 250.7 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.005049, allocations: 7.938 kB / 278.1 MB, free: 476 kB / 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.0006274/0.005676, allocations: 0.8775 MB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.079e-05/0.005707, allocations: 12.02 kB / 279 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.944e-05/0.005776, allocations: 52.66 kB / 279.1 MB, free: 15.45 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000197/0.005973, allocations: 246.7 kB / 279.3 MB, free: 15.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.761e-05/0.005991, allocations: 4.375 kB / 279.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.006014, allocations: 12.38 kB / 279.3 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003284/0.006342, allocations: 299.3 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.276e-06/0.006351, allocations: 4.125 kB / 279.6 MB, free: 14.84 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.883e-05/0.006369, allocations: 4.375 kB / 279.6 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.006377, allocations: 7.938 kB / 279.6 MB, free: 14.82 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001352/0.006513, allocations: 196.5 kB / 279.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005162/0.007029, allocations: 440 kB / 280.3 MB, free: 14.14 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001694/0.007198, allocations: 223.5 kB / 280.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001116/0.00731, allocations: 204.2 kB / 280.7 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.901e-06/0.007316, allocations: 4 kB / 280.7 MB, free: 13.64 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002204/0.007536, allocations: 376.6 kB / 281.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.392e-06/0.007537, allocations: 0 / 281.1 MB, free: 13.22 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007863/0.008324, allocations: 0.8387 MB / 281.9 MB, free: 12.28 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.518e-05/0.008389, allocations: 195.9 kB / 282.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004536/0.008843, allocations: 0.545 MB / 282.6 MB, free: 11.49 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.534e-05/0.008868, allocations: 37.81 kB / 282.7 MB, free: 11.45 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.865e-05/0.008937, allocations: 171.7 kB / 282.8 MB, free: 11.27 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.597e-05/0.008972, allocations: 35.86 kB / 282.9 MB, free: 11.23 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.35e-05/0.009066, allocations: 103.1 kB / 283 MB, free: 11.12 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.009209, allocations: 0.504 MB / 283.5 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001226/0.009331, allocations: 192.5 kB / 283.7 MB, free: 10.39 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.009458, allocations: 231.8 kB / 283.9 MB, free: 10.12 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002331/0.009691, allocations: 404.3 kB / 284.3 MB, free: 9.66 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.009693, allocations: 0 / 284.3 MB, free: 9.66 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004494/0.01014, allocations: 0.6028 MB / 284.9 MB, free: 8.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.161e-05/0.01021, allocations: 156.5 kB / 285 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.32e-06/0.01022, allocations: 0 / 285 MB, free: 8.809 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.285e-06/0.01023, allocations: 3.938 kB / 285 MB, free: 8.805 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.766e-05/0.01025, allocations: 8.062 kB / 285.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.395e-06/0.01025, allocations: 0 / 285.1 MB, free: 8.797 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.825e-05/0.01035, allocations: 16.03 kB / 285.1 MB, free: 8.781 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.423e-05/0.01042, allocations: 105.4 kB / 285.2 MB, free: 8.68 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.0002538/0.01067, allocations: 419 kB / 285.6 MB, free: 8.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.576e-05/0.01073, allocations: 59.66 kB / 285.6 MB, free: 8.172 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.81e-05/0.01081, allocations: 55.42 kB / 285.7 MB, free: 8.117 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.01081, allocations: 7.984 kB / 285.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.503e-06/0.01081, allocations: 0 / 285.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.815e-06/0.01082, allocations: 0 / 285.7 MB, free: 8.109 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007091/0.01153, allocations: 0.9908 MB / 286.7 MB, free: 7.023 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.435e-06/0.01153, allocations: 7.938 kB / 286.7 MB, free: 7.016 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.573e-06/0.01153, allocations: 4 kB / 286.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.01154, allocations: 0 / 286.7 MB, free: 7.012 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.28e-05/0.01156, allocations: 19.98 kB / 286.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.01156, allocations: 0 / 286.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.01156, allocations: 0 / 286.7 MB, free: 6.992 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005261/0.01209, allocations: 0.8321 MB / 287.6 MB, free: 6.082 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002479/0.01234, allocations: 205.3 kB / 287.8 MB, free: 5.883 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.092e-05/0.01238, allocations: 12 kB / 287.8 MB, free: 5.871 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.972e-05/0.01247, allocations: 8 kB / 287.8 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.768e-05/0.01255, allocations: 51.95 kB / 287.8 MB, free: 5.812 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.611e-05/0.01262, allocations: 101.4 kB / 287.9 MB, free: 5.711 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0004195/0.01304, allocations: 322.8 kB / 288.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.01304, allocations: 0 / 288.2 MB, free: 5.402 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001999/0.01324, allocations: 48 kB / 288.3 MB, free: 5.355 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.0001053/0.01335, allocations: 119.3 kB / 288.4 MB, free: 5.227 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0003863/0.01373, allocations: 0.7124 MB / 289.1 MB, free: 4.387 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.543e-06/0.01373, allocations: 0 / 289.1 MB, free: 4.387 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002191/0.01395, allocations: 0.4974 MB / 289.6 MB, free: 3.793 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005/0.01445, allocations: 207.5 kB / 289.8 MB, free: 3.602 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007895/0.01524, allocations: 0.8444 MB / 290.7 MB, free: 2.699 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.489e-05/0.01532, allocations: 107.6 kB / 290.8 MB, free: 2.574 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 4.403e-05/0.01536, allocations: 12.95 kB / 290.8 MB, free: 2.559 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003916/0.01575, allocations: 278 kB / 291 MB, free: 2.285 MB / 266.7 MB Notification: Performance of SimCode: time 9.21e-07/0.01575, allocations: 0 / 291 MB, free: 2.285 MB / 266.7 MB Notification: Performance of Templates: time 0.00783/0.02358, allocations: 7.456 MB / 298.5 MB, free: 10.78 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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","",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.766505474690348]