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.001961/0.001961, allocations: 91.61 kB / 20.96 MB, free: 3.469 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.002087/0.002087, allocations: 169.3 kB / 24.28 MB, free: 156 kB / 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 1.597/1.597, allocations: 177.1 MB / 204.6 MB, free: 5.613 MB / 186.7 MB " [Timeout remaining time 178] 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.493e-06/1.493e-06, allocations: 0 / 272.3 MB, free: 1.859 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.794e-05, allocations: 6.25 kB / 272.3 MB, free: 1.852 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003851/0.003878, allocations: 2.055 MB / 274.4 MB, free: 15.79 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.00632, allocations: 1.017 MB / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.098e-05/0.006401, allocations: 0 / 275.4 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.00658, allocations: 39.64 kB / 275.4 MB, free: 14.73 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001377/0.006718, allocations: 55.52 kB / 275.5 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004145/0.007132, allocations: 131.7 kB / 275.6 MB, free: 14.54 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000528/0.00766, allocations: 407 kB / 276 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001879/0.007848, allocations: 63.64 kB / 276.1 MB, free: 14.08 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.009107, allocations: 1.033 MB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003053/0.009412, allocations: 175.5 kB / 277.3 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.000118/0.00953, allocations: 35.94 kB / 277.3 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.79e-05/0.009628, allocations: 36 kB / 277.3 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002142/0.009842, allocations: 167.4 kB / 277.5 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002206/0.01006, allocations: 143.4 kB / 277.6 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001191/0.01125, allocations: 0.9891 MB / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.816e-06/0.01126, allocations: 0 / 278.6 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.002e-06/0.01126, allocations: 4 kB / 278.6 MB, free: 11.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.707e-06/0.01127, allocations: 4 kB / 278.6 MB, free: 11.5 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.002022/0.01329, allocations: 1.299 MB / 279.9 MB, free: 10.14 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.705e-05/0.01333, allocations: 8.031 kB / 279.9 MB, free: 10.13 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.01352, allocations: 104.4 kB / 280 MB, free: 10.03 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006217/0.01414, allocations: 373.1 kB / 280.4 MB, free: 9.633 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.178e-05/0.01418, allocations: 16.36 kB / 280.4 MB, free: 9.617 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.847e-05/0.01426, allocations: 20.38 kB / 280.4 MB, free: 9.598 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007271/0.01499, allocations: 404.8 kB / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.057e-06/0.015, allocations: 192 / 280.8 MB, free: 9.172 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.305e-05/0.01504, allocations: 8.375 kB / 280.9 MB, free: 9.164 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.438e-06/0.01505, allocations: 7.938 kB / 280.9 MB, free: 9.156 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005496/0.0156, allocations: 298.7 kB / 281.1 MB, free: 8.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002277/0.01787, allocations: 1.083 MB / 282.2 MB, free: 7.715 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.01849, allocations: 333.8 kB / 282.6 MB, free: 7.352 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004207/0.01891, allocations: 274.4 kB / 282.8 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.876e-05/0.01894, allocations: 0 / 282.8 MB, free: 7.055 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007528/0.01969, allocations: 0.5415 MB / 283.4 MB, free: 6.449 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.493e-06/0.0197, allocations: 0 / 283.4 MB, free: 6.449 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.00186/0.02155, allocations: 1.044 MB / 284.4 MB, free: 5.324 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001374/0.02169, allocations: 178.2 kB / 284.6 MB, free: 5.113 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002262/0.02395, allocations: 1.393 MB / 286 MB, free: 3.703 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.952e-05/0.02401, allocations: 37.7 kB / 286 MB, free: 3.66 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002021/0.02422, allocations: 212.6 kB / 286.2 MB, free: 3.445 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000103/0.02432, allocations: 67.59 kB / 286.3 MB, free: 3.379 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003021/0.02462, allocations: 191 kB / 286.5 MB, free: 3.184 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.000307/0.02493, allocations: 0.5235 MB / 287 MB, free: 2.648 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004058/0.02533, allocations: 258.8 kB / 287.3 MB, free: 2.371 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004697/0.0258, allocations: 329.2 kB / 287.6 MB, free: 2.004 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007422/0.02655, allocations: 0.5233 MB / 288.1 MB, free: 1.41 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.875e-06/0.02655, allocations: 3.938 kB / 288.1 MB, free: 1.406 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001544/0.02809, allocations: 0.7527 MB / 288.9 MB, free: 0.5977 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001269/0.02822, allocations: 138.7 kB / 289 MB, free: 448 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.656e-06/0.02823, allocations: 4 kB / 289 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.494e-05/0.02824, allocations: 0 / 289 MB, free: 444 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.915e-05/0.02833, allocations: 19.92 kB / 289 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.971e-06/0.02834, allocations: 0 / 289 MB, free: 424 kB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002088/0.02855, allocations: 24.06 kB / 289 MB, free: 400 kB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001472/0.02869, allocations: 116 kB / 289.1 MB, free: 284 kB / 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.0007087/0.0294, allocations: 0.5406 MB / 289.7 MB, free: 15.7 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001565/0.02956, allocations: 99.47 kB / 289.8 MB, free: 15.6 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002118/0.02977, allocations: 110.5 kB / 289.9 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.777e-06/0.02978, allocations: 0 / 289.9 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.14e-06/0.02978, allocations: 4 kB / 289.9 MB, free: 15.49 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.902e-06/0.02979, allocations: 4 kB / 289.9 MB, free: 15.48 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001339/0.03113, allocations: 0.7537 MB / 290.7 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.235e-06/0.03113, allocations: 0 / 290.7 MB, free: 14.7 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.188e-05/0.03119, allocations: 15.98 kB / 290.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.601e-06/0.0312, allocations: 3.938 kB / 290.7 MB, free: 14.68 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.334e-05/0.03127, allocations: 27.98 kB / 290.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.03127, allocations: 0 / 290.7 MB, free: 14.65 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.034e-06/0.03127, allocations: 3.938 kB / 290.7 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001473/0.03275, allocations: 0.8943 MB / 291.6 MB, free: 13.68 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000983/0.03373, allocations: 480.8 kB / 292.1 MB, free: 13.2 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001205/0.03385, allocations: 27.94 kB / 292.1 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000177/0.03403, allocations: 15.98 kB / 292.1 MB, free: 13.16 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002556/0.03428, allocations: 55.94 kB / 292.2 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001754/0.03446, allocations: 115.9 kB / 292.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001391/0.03585, allocations: 0.846 MB / 293.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.03585, allocations: 0 / 293.1 MB, free: 12.15 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004076/0.03626, allocations: 87.94 kB / 293.2 MB, free: 12.07 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.000216/0.03647, allocations: 147.2 kB / 293.4 MB, free: 11.91 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001264/0.03774, allocations: 0.8893 MB / 294.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.716e-06/0.03774, allocations: 0 / 294.2 MB, free: 10.92 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007855/0.03852, allocations: 0.5859 MB / 294.8 MB, free: 10.26 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009321/0.03946, allocations: 227.9 kB / 295.1 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002773/0.04223, allocations: 1.448 MB / 296.5 MB, free: 8.539 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005465/0.04278, allocations: 349 kB / 296.8 MB, free: 8.176 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004285/0.0432, allocations: 161.1 kB / 297 MB, free: 8.016 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001992/0.0434, allocations: 76.34 kB / 297.1 MB, free: 7.941 MB / 282.7 MB Notification: Performance of SimCode: time 9.92e-07/0.0434, allocations: 0 / 297.1 MB, free: 7.941 MB / 282.7 MB Notification: Performance of Templates: time 0.1243/0.1677, allocations: 8.29 MB / 305.4 MB, free: 42.8 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.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.687681286013685]