Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.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.001398/0.001398, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.001604/0.001604, allocations: 156.9 kB / 24.27 MB, free: 168 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 1.507/1.507, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] 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.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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.533e-06/1.533e-06, allocations: 0 / 272.2 MB, free: 1.809 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.449e-05/2.602e-05, allocations: 2.312 kB / 272.2 MB, free: 1.805 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003592/0.003618, allocations: 2.019 MB / 274.2 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.002421/0.006039, allocations: 1.005 MB / 275.2 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.16e-05/0.00613, allocations: 7.938 kB / 275.2 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001923/0.006323, allocations: 31.66 kB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001468/0.00647, allocations: 63.52 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004389/0.006908, allocations: 131.7 kB / 275.5 MB, free: 14.53 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005296/0.007438, allocations: 403 kB / 275.8 MB, free: 14.14 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001808/0.007619, allocations: 63.66 kB / 275.9 MB, free: 14.07 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001284/0.008903, allocations: 1.025 MB / 276.9 MB, free: 13.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002775/0.009181, allocations: 175.5 kB / 277.1 MB, free: 12.88 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.773e-05/0.009268, allocations: 36 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.527e-05/0.009344, allocations: 35.94 kB / 277.2 MB, free: 12.8 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001906/0.009534, allocations: 167.3 kB / 277.3 MB, free: 12.64 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002065/0.009741, allocations: 143.4 kB / 277.5 MB, free: 12.5 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00111/0.01085, allocations: 0.9891 MB / 278.5 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.027e-06/0.01086, allocations: 0 / 278.5 MB, free: 11.51 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.623e-06/0.01086, allocations: 0 / 278.5 MB, free: 11.51 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.043e-06/0.01086, allocations: 0 / 278.5 MB, free: 11.51 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.001439/0.0123, allocations: 1.066 MB / 279.5 MB, free: 10.38 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.065e-05/0.01234, allocations: 11.98 kB / 279.5 MB, free: 10.37 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001985/0.01254, allocations: 104.4 kB / 279.6 MB, free: 10.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.01306, allocations: 366.3 kB / 280 MB, free: 9.883 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.834e-05/0.01312, allocations: 24.34 kB / 280 MB, free: 9.859 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.978e-05/0.01318, allocations: 16.38 kB / 280 MB, free: 9.844 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007726/0.01395, allocations: 436.7 kB / 280.5 MB, free: 9.387 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.028e-05/0.01396, allocations: 4.188 kB / 280.5 MB, free: 9.383 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.713e-05/0.01401, allocations: 8.375 kB / 280.5 MB, free: 9.375 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.01402, allocations: 7.938 kB / 280.5 MB, free: 9.367 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006044/0.01462, allocations: 338.7 kB / 280.8 MB, free: 9.012 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001423/0.01605, allocations: 0.7572 MB / 281.6 MB, free: 8.223 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005646/0.01661, allocations: 305.3 kB / 281.9 MB, free: 7.891 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003832/0.01699, allocations: 243.6 kB / 282.1 MB, free: 7.625 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.608e-05/0.01702, allocations: 7.984 kB / 282.1 MB, free: 7.617 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007812/0.0178, allocations: 0.524 MB / 282.6 MB, free: 7.035 MB / 266.7 MB Notification: Performance of pre-optimization done (n=24): time 1.483e-06/0.0178, allocations: 0 / 282.6 MB, free: 7.035 MB / 266.7 MB Notification: Performance of matching and sorting (n=24): time 0.001925/0.01973, allocations: 1.019 MB / 283.7 MB, free: 5.938 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001411/0.01987, allocations: 178.2 kB / 283.8 MB, free: 5.727 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001522/0.02139, allocations: 1 MB / 284.8 MB, free: 4.715 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.193e-05/0.02144, allocations: 33.7 kB / 284.9 MB, free: 4.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001568/0.0216, allocations: 157.9 kB / 285 MB, free: 4.516 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.75e-05/0.0217, allocations: 59.58 kB / 285.1 MB, free: 4.457 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002681/0.02197, allocations: 161.3 kB / 285.2 MB, free: 4.293 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001917/0.02216, allocations: 342.8 kB / 285.6 MB, free: 3.949 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003879/0.02255, allocations: 254.8 kB / 285.8 MB, free: 3.676 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004588/0.023, allocations: 303 kB / 286.1 MB, free: 3.34 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007422/0.02375, allocations: 497.7 kB / 286.6 MB, free: 2.789 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.02375, allocations: 0 / 286.6 MB, free: 2.789 MB / 266.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001268/0.02502, allocations: 0.741 MB / 287.3 MB, free: 1.992 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001367/0.02515, allocations: 138.8 kB / 287.5 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.02516, allocations: 0 / 287.5 MB, free: 1.832 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.569e-05/0.02519, allocations: 4 kB / 287.5 MB, free: 1.828 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.048e-05/0.02528, allocations: 16.05 kB / 287.5 MB, free: 1.812 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.718e-06/0.02529, allocations: 7.938 kB / 287.5 MB, free: 1.805 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002508/0.02554, allocations: 19.94 kB / 287.5 MB, free: 1.785 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001432/0.02568, allocations: 115.9 kB / 287.6 MB, free: 1.672 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.0006879/0.02637, allocations: 0.534 MB / 288.2 MB, free: 1.102 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001599/0.02653, allocations: 103.5 kB / 288.3 MB, free: 1 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002169/0.02675, allocations: 130.5 kB / 288.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.02675, allocations: 0 / 288.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.02675, allocations: 0 / 288.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.046e-06/0.02676, allocations: 0 / 288.4 MB, free: 0.8672 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007093/0.02747, allocations: 0.4929 MB / 288.9 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.02747, allocations: 0 / 288.9 MB, free: 352 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.296e-05/0.02751, allocations: 15.94 kB / 288.9 MB, free: 336 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.318e-06/0.02752, allocations: 3.938 kB / 288.9 MB, free: 332 kB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.727e-05/0.02757, allocations: 27.97 kB / 288.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.402e-06/0.02757, allocations: 0 / 288.9 MB, free: 304 kB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.02758, allocations: 4 kB / 288.9 MB, free: 300 kB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001431/0.02901, allocations: 0.8582 MB / 289.8 MB, free: 15.37 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008769/0.02988, allocations: 0.493 MB / 290.3 MB, free: 14.87 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002497/0.03013, allocations: 27.92 kB / 290.3 MB, free: 14.84 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001979/0.03033, allocations: 23.97 kB / 290.4 MB, free: 14.82 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000192/0.03052, allocations: 43.95 kB / 290.4 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001497/0.03067, allocations: 115.9 kB / 290.5 MB, free: 14.66 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001187/0.03186, allocations: 0.7328 MB / 291.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03186, allocations: 0 / 291.2 MB, free: 13.93 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0004309/0.03229, allocations: 91.94 kB / 291.3 MB, free: 13.84 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.0002056/0.0325, allocations: 127.2 kB / 291.5 MB, free: 13.71 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001236/0.03373, allocations: 0.8118 MB / 292.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.03373, allocations: 0 / 292.3 MB, free: 12.8 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006565/0.03439, allocations: 0.5355 MB / 292.8 MB, free: 12.19 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009163/0.03531, allocations: 229.9 kB / 293 MB, free: 11.97 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002586/0.03789, allocations: 1.496 MB / 294.5 MB, free: 10.42 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005228/0.03842, allocations: 373 kB / 294.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004052/0.03882, allocations: 161.1 kB / 295 MB, free: 9.875 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001965/0.03902, allocations: 76.34 kB / 295.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of SimCode: time 1.342e-06/0.03902, allocations: 0 / 295.1 MB, free: 9.797 MB / 282.7 MB Notification: Performance of Templates: time 0.01494/0.05395, allocations: 8.311 MB / 303.4 MB, free: 1.59 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.57815296202898]