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.001023/0.001023, allocations: 91.5 kB / 21.19 MB, free: 3.371 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.001194/0.001194, allocations: 156.5 kB / 24.55 MB, free: 16 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 0.997/0.997, allocations: 177 MB / 204.8 MB, free: 5.258 MB / 186.7 MB " [Timeout remaining time 179] 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.493e-06/1.493e-06, allocations: 0 / 272.9 MB, free: 1.309 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.313e-05/2.463e-05, allocations: 2.312 kB / 272.9 MB, free: 1.305 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002463/0.002488, allocations: 1.572 MB / 274.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.003815, allocations: 0.877 MB / 275.4 MB, free: 14.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.224e-05/0.003857, allocations: 4 kB / 275.4 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 8.668e-05/0.003944, allocations: 11.86 kB / 275.4 MB, free: 14.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.243e-05/0.004016, allocations: 19.86 kB / 275.4 MB, free: 14.8 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002309/0.004247, allocations: 63.81 kB / 275.5 MB, free: 14.74 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001627/0.00441, allocations: 155.7 kB / 275.6 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.339e-05/0.004493, allocations: 17.53 kB / 275.6 MB, free: 14.57 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004612/0.004954, allocations: 0.6629 MB / 276.3 MB, free: 13.9 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001056/0.00506, allocations: 71.75 kB / 276.4 MB, free: 13.83 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.344e-05/0.005093, allocations: 8 kB / 276.4 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.733e-05/0.005121, allocations: 12 kB / 276.4 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.986e-05/0.005191, allocations: 79.7 kB / 276.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.017e-05/0.005261, allocations: 67.66 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002546/0.005515, allocations: 354.8 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.944e-06/0.005517, allocations: 0 / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of FrontEnd: time 6.72e-07/0.005518, allocations: 4 kB / 276.9 MB, free: 13.32 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.15e-06/0.005523, allocations: 0 / 276.9 MB, free: 13.32 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.0006453/0.006169, allocations: 0.8774 MB / 277.8 MB, free: 12.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.388e-05/0.006202, allocations: 11.98 kB / 277.8 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.356e-05/0.006286, allocations: 52.66 kB / 277.8 MB, free: 12.31 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002078/0.006494, allocations: 246.7 kB / 278.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.006514, allocations: 8.375 kB / 278.1 MB, free: 12.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.301e-05/0.006537, allocations: 12.38 kB / 278.1 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003046/0.006841, allocations: 326 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.135e-06/0.00685, allocations: 4.172 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.912e-05/0.006869, allocations: 8.375 kB / 278.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.394e-06/0.006876, allocations: 3.938 kB / 278.4 MB, free: 11.65 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001246/0.007001, allocations: 220.4 kB / 278.6 MB, free: 11.4 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005566/0.007557, allocations: 0.5306 MB / 279.2 MB, free: 10.84 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001634/0.007721, allocations: 239.5 kB / 279.4 MB, free: 10.56 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001581/0.007879, allocations: 224.2 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.812e-06/0.007886, allocations: 4 kB / 279.6 MB, free: 10.3 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002454/0.008131, allocations: 392.7 kB / 280 MB, free: 9.859 MB / 266.7 MB Notification: Performance of pre-optimization done (n=14): time 1.312e-06/0.008132, allocations: 0 / 280 MB, free: 9.859 MB / 266.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007218/0.008854, allocations: 0.8777 MB / 280.9 MB, free: 8.883 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.515e-05/0.008919, allocations: 199.9 kB / 281.1 MB, free: 8.645 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.009463, allocations: 0.6661 MB / 281.7 MB, free: 7.965 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.29e-05/0.009486, allocations: 33.7 kB / 281.8 MB, free: 7.926 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.543e-05/0.009551, allocations: 171.8 kB / 281.9 MB, free: 7.75 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.009583, allocations: 31.88 kB / 282 MB, free: 7.719 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.581e-05/0.009669, allocations: 103.2 kB / 282.1 MB, free: 7.609 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002255/0.009894, allocations: 0.5001 MB / 282.6 MB, free: 7.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001223/0.01002, allocations: 220.5 kB / 282.8 MB, free: 6.852 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001266/0.01014, allocations: 231.8 kB / 283 MB, free: 6.586 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002156/0.01036, allocations: 424.3 kB / 283.4 MB, free: 6.102 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.175e-06/0.01036, allocations: 0 / 283.4 MB, free: 6.102 MB / 266.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004328/0.01079, allocations: 0.6305 MB / 284.1 MB, free: 5.406 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.918e-05/0.01085, allocations: 156.5 kB / 284.2 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.01086, allocations: 0 / 284.2 MB, free: 5.223 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.245e-05/0.01087, allocations: 4 kB / 284.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.835e-05/0.01089, allocations: 32 / 284.2 MB, free: 5.219 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.949e-06/0.01089, allocations: 8.047 kB / 284.2 MB, free: 5.211 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.863e-05/0.01099, allocations: 15.94 kB / 284.2 MB, free: 5.195 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.414e-05/0.01107, allocations: 101.5 kB / 284.3 MB, free: 5.098 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.0002236/0.01129, allocations: 423 kB / 284.7 MB, free: 4.645 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.098e-05/0.01134, allocations: 59.66 kB / 284.8 MB, free: 4.586 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.035e-05/0.01141, allocations: 63.39 kB / 284.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-06/0.01141, allocations: 0 / 284.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.767e-06/0.01142, allocations: 0 / 284.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.976e-06/0.01142, allocations: 0 / 284.9 MB, free: 4.52 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001066/0.01249, allocations: 1.131 MB / 286 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.334e-06/0.01249, allocations: 0 / 286 MB, free: 3.285 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.489e-06/0.01249, allocations: 7.938 kB / 286 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.765e-06/0.0125, allocations: 0 / 286 MB, free: 3.277 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.347e-05/0.01252, allocations: 19.98 kB / 286 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.723e-06/0.01252, allocations: 0 / 286 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.593e-06/0.01252, allocations: 0 / 286 MB, free: 3.258 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000502/0.01302, allocations: 0.8596 MB / 286.9 MB, free: 2.32 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002075/0.01323, allocations: 201.3 kB / 287.1 MB, free: 2.121 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.01327, allocations: 12 kB / 287.1 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.572e-05/0.01335, allocations: 12 kB / 287.1 MB, free: 2.098 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.01346, allocations: 67.91 kB / 287.2 MB, free: 2.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.04e-05/0.01352, allocations: 105.4 kB / 287.3 MB, free: 1.93 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003393/0.01386, allocations: 450.7 kB / 287.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.01386, allocations: 0 / 287.7 MB, free: 1.492 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002046/0.01406, allocations: 52 kB / 287.8 MB, free: 1.441 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 9.2e-05/0.01415, allocations: 111.2 kB / 287.9 MB, free: 1.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004472/0.0146, allocations: 0.7476 MB / 288.6 MB, free: 456 kB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.0146, allocations: 8.062 kB / 288.6 MB, free: 448 kB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002464/0.01485, allocations: 0.5208 MB / 289.1 MB, free: 15.82 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004562/0.01531, allocations: 204 kB / 289.3 MB, free: 15.63 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007916/0.0161, allocations: 0.8638 MB / 290.2 MB, free: 14.71 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 7.432e-05/0.01617, allocations: 107.8 kB / 290.3 MB, free: 14.59 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 5.059e-05/0.01622, allocations: 8.969 kB / 290.3 MB, free: 14.57 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.798e-05/0.01625, allocations: 20.5 kB / 290.3 MB, free: 14.55 MB / 282.7 MB Notification: Performance of SimCode: time 1.062e-06/0.01625, allocations: 0 / 290.3 MB, free: 14.55 MB / 282.7 MB Notification: Performance of Templates: time 0.008468/0.02472, allocations: 8.501 MB / 298.8 MB, free: 5.98 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","",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.884614134207368]