Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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.001479/0.001479, allocations: 75.75 kB / 21.69 MB, free: 2.855 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.00133/0.00133, allocations: 166.7 kB / 24.99 MB, free: 8.801 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.9981/0.9981, allocations: 177.1 MB / 205.3 MB, free: 5.602 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.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") translateModel(Modelica.Electrical.Digital.Examples.HalfAdder,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5010,variableFilter="time|Adder.AND.G2.x|Adder.AND.G2.y|Adder.XOR.G2.x|Adder.XOR.G2.y",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.432e-06/1.432e-06, allocations: 0 / 273.1 MB, free: 1.816 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.72e-05/2.863e-05, allocations: 6.25 kB / 273.1 MB, free: 1.809 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002307/0.002335, allocations: 2.078 MB / 275.1 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.00156/0.003895, allocations: 1.013 MB / 276.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.225e-05/0.003977, allocations: 4 kB / 276.2 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001663/0.004144, allocations: 35.64 kB / 276.2 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.982e-05/0.004223, allocations: 67.45 kB / 276.3 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003324/0.004556, allocations: 131.7 kB / 276.4 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003267/0.004882, allocations: 399 kB / 276.8 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001888/0.005071, allocations: 67.62 kB / 276.8 MB, free: 14.01 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006863/0.005758, allocations: 1.022 MB / 277.9 MB, free: 12.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001602/0.005918, allocations: 187.4 kB / 278 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 5.688e-05/0.005975, allocations: 36 kB / 278.1 MB, free: 12.77 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.831e-05/0.006023, allocations: 36 kB / 278.1 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.006144, allocations: 163.4 kB / 278.3 MB, free: 12.57 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001366/0.006281, allocations: 143.4 kB / 278.4 MB, free: 12.43 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005301/0.006811, allocations: 0.6656 MB / 279.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.456e-06/0.006814, allocations: 0 / 279.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.202e-06/0.006816, allocations: 0 / 279.1 MB, free: 11.76 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.388e-06/0.006825, allocations: 0 / 279.1 MB, free: 11.76 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: 42 * Number of variables: 42 Notification: Performance of Generate backend data structure: time 0.001047/0.007872, allocations: 1.217 MB / 280.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.601e-05/0.007918, allocations: 8.031 kB / 280.3 MB, free: 10.47 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001275/0.008046, allocations: 104.4 kB / 280.4 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000314/0.00836, allocations: 377 kB / 280.8 MB, free: 9.973 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.363e-05/0.008394, allocations: 20.38 kB / 280.8 MB, free: 9.953 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.008427, allocations: 20.38 kB / 280.8 MB, free: 9.934 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004466/0.008873, allocations: 385.5 kB / 281.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.624e-06/0.008881, allocations: 192 / 281.2 MB, free: 9.523 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.677e-05/0.008918, allocations: 12.38 kB / 281.2 MB, free: 9.512 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.206e-06/0.008926, allocations: 3.938 kB / 281.2 MB, free: 9.508 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002469/0.009173, allocations: 250.7 kB / 281.4 MB, free: 9.238 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001013/0.01019, allocations: 0.8931 MB / 282.3 MB, free: 8.309 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003027/0.01049, allocations: 281.8 kB / 282.6 MB, free: 7.996 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000168/0.01066, allocations: 218.4 kB / 282.8 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.576e-05/0.01067, allocations: 0 / 282.8 MB, free: 7.754 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000388/0.01106, allocations: 499.3 kB / 283.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.01106, allocations: 0 / 283.3 MB, free: 7.203 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008655/0.01193, allocations: 0.9214 MB / 284.2 MB, free: 6.203 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.165e-05/0.012, allocations: 186.2 kB / 284.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001102/0.0131, allocations: 1.155 MB / 285.6 MB, free: 4.812 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.254e-05/0.01313, allocations: 37.7 kB / 285.6 MB, free: 4.77 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.32e-05/0.01323, allocations: 204.6 kB / 285.8 MB, free: 4.562 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.949e-05/0.01329, allocations: 59.58 kB / 285.9 MB, free: 4.504 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000141/0.01343, allocations: 171 kB / 286 MB, free: 4.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001237/0.01355, allocations: 0.5079 MB / 286.5 MB, free: 3.809 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.01374, allocations: 214.6 kB / 286.8 MB, free: 3.574 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001936/0.01393, allocations: 269.2 kB / 287 MB, free: 3.266 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003169/0.01425, allocations: 447.9 kB / 287.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.785e-06/0.01425, allocations: 0 / 287.5 MB, free: 2.758 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005829/0.01483, allocations: 0.6706 MB / 288.1 MB, free: 2.031 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.614e-05/0.0149, allocations: 138.8 kB / 288.3 MB, free: 1.871 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.231e-06/0.0149, allocations: 4 kB / 288.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.225e-05/0.01492, allocations: 0 / 288.3 MB, free: 1.867 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.556e-05/0.01498, allocations: 12 kB / 288.3 MB, free: 1.855 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.31e-06/0.01499, allocations: 4.062 kB / 288.3 MB, free: 1.852 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001295/0.01512, allocations: 27.92 kB / 288.3 MB, free: 1.824 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.891e-05/0.0152, allocations: 111.9 kB / 288.4 MB, free: 1.715 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 28 ($PRE.Adder.XOR.G2.y,$PRE.Adder.AND.G2.y,Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,b.y,a.y,Adder.XOR.G2.t_next,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.delayTime,Adder.XOR.G2.y,Adder.XOR.G2.x,$PRE.Adder.XOR.G2.x,$PRE.Adder.XOR.G1.auxiliary_n,$whenCondition2,$whenCondition1,Adder.AND.G2.t_next,Adder.AND.G2.lh,Adder.AND.G2.y_old,Adder.AND.G2.y_auxiliary,Adder.AND.G2.delayTime,Adder.AND.G2.y,Adder.AND.G2.x,$PRE.Adder.AND.G2.x,$PRE.Adder.AND.G1.auxiliary_n,$whenCondition4,$whenCondition3) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 4 * 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.0003764/0.01557, allocations: 0.5251 MB / 288.9 MB, free: 1.152 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.226e-05/0.01565, allocations: 95.47 kB / 289 MB, free: 1.059 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001249/0.01578, allocations: 110.5 kB / 289.1 MB, free: 0.9453 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.01578, allocations: 11.94 kB / 289.2 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.768e-06/0.01579, allocations: 0 / 289.2 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.627e-06/0.01579, allocations: 0 / 289.2 MB, free: 0.9336 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005738/0.01636, allocations: 0.5975 MB / 289.8 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.914e-06/0.01637, allocations: 0 / 289.8 MB, free: 308 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.606e-05/0.01639, allocations: 12 kB / 289.8 MB, free: 296 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.0164, allocations: 3.938 kB / 289.8 MB, free: 292 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.119e-05/0.01643, allocations: 27.98 kB / 289.8 MB, free: 264 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.855e-06/0.01643, allocations: 3.984 kB / 289.8 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.01643, allocations: 0 / 289.8 MB, free: 260 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007191/0.01715, allocations: 0.8059 MB / 290.6 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004563/0.01761, allocations: 468.8 kB / 291.1 MB, free: 14.91 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.078e-05/0.01768, allocations: 23.94 kB / 291.1 MB, free: 14.88 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.559e-05/0.01777, allocations: 15.98 kB / 291.1 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001159/0.01789, allocations: 47.94 kB / 291.2 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.098e-05/0.01796, allocations: 115.9 kB / 291.3 MB, free: 14.71 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0006908/0.01865, allocations: 0.7678 MB / 292 MB, free: 13.95 MB / 282.7 MB Notification: Performance of sort global known variables: time 9e-08/0.01865, allocations: 0 / 292 MB, free: 13.95 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0002354/0.01889, allocations: 84 kB / 292.1 MB, free: 13.86 MB / 282.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: 22 ($whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.delayTime,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.G2.lh,Adder.AND.G2.t_next,Adder.XOR.G1.auxiliary_n,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.G2.lh,Adder.XOR.G2.t_next) * Number of discrete states: 22 (Adder.XOR.G1.auxiliary_n,Adder.AND.G1.auxiliary_n,Adder.XOR.G2.y,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.t_next,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.y_old,$whenCondition2,$whenCondition1,Adder.XOR.G2.x,Adder.AND.G2.y,Adder.AND.G2.y_auxiliary,Adder.AND.G2.t_next,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.y_old,$whenCondition4,$whenCondition3,Adder.AND.G2.x,b.y,a.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 4 * 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.0001157/0.019, allocations: 135.2 kB / 292.2 MB, free: 13.72 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0005699/0.01957, allocations: 0.7478 MB / 293 MB, free: 12.88 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 3.878e-06/0.01958, allocations: 4 kB / 293 MB, free: 12.87 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003206/0.0199, allocations: 0.5079 MB / 293.5 MB, free: 12.29 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004936/0.02039, allocations: 235.1 kB / 293.7 MB, free: 12.07 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001354/0.02174, allocations: 1.4 MB / 295.1 MB, free: 10.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001196/0.02186, allocations: 151.8 kB / 295.3 MB, free: 10.45 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002146/0.02208, allocations: 153.1 kB / 295.4 MB, free: 10.29 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001205/0.0222, allocations: 88.33 kB / 295.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of SimCode: time 1.092e-06/0.0222, allocations: 0 / 295.5 MB, free: 10.21 MB / 282.7 MB Notification: Performance of Templates: time 0.008876/0.03108, allocations: 8.304 MB / 303.8 MB, free: 2.023 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.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.046467784093693]