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.001935/0.001935, allocations: 89.14 kB / 20.68 MB, free: 1.02 MB / 14.72 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.002353/0.002353, allocations: 158.8 kB / 23.95 MB, free: 4.152 MB / 14.72 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.493/1.493, allocations: 177 MB / 204.1 MB, free: 9.164 MB / 190.1 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.413e-06/1.413e-06, allocations: 0 / 325 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.625e-05/2.766e-05, allocations: 6.094 kB / 325 MB, free: 492 kB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003098/0.003125, allocations: 2.006 MB / 327 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002392/0.005517, allocations: 1.014 MB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001196/0.005637, allocations: 6.531 kB / 328 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001944/0.005831, allocations: 41.33 kB / 328.1 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001391/0.00597, allocations: 54.27 kB / 328.1 MB, free: 14.37 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000446/0.006416, allocations: 130.9 kB / 328.3 MB, free: 14.29 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005375/0.006954, allocations: 400.6 kB / 328.6 MB, free: 14.09 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002009/0.007155, allocations: 68.55 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001296/0.008451, allocations: 1.03 MB / 329.7 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.008745, allocations: 181.6 kB / 329.9 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.008846, allocations: 34.5 kB / 330 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.796e-05/0.008933, allocations: 38.62 kB / 330 MB, free: 13.81 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001861/0.00912, allocations: 166.1 kB / 330.2 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002157/0.009335, allocations: 142.4 kB / 330.3 MB, free: 13.62 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001017/0.01035, allocations: 0.9865 MB / 331.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.01036, allocations: 0 / 331.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.91e-07/0.01036, allocations: 1.156 kB / 331.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.436e-06/0.01036, allocations: 0 / 331.3 MB, free: 12.88 MB / 302.1 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.001471/0.01184, allocations: 1.069 MB / 332.4 MB, free: 11.95 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.273e-05/0.01188, allocations: 13.3 kB / 332.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001439/0.01202, allocations: 85.27 kB / 332.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005131/0.01254, allocations: 369.2 kB / 332.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.348e-05/0.01258, allocations: 21.97 kB / 332.8 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.816e-05/0.01264, allocations: 19.97 kB / 332.9 MB, free: 11.58 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007922/0.01343, allocations: 429.5 kB / 333.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.01344, allocations: 192 / 333.3 MB, free: 11.26 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.753e-05/0.01349, allocations: 12.94 kB / 333.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.093e-06/0.0135, allocations: 7.156 kB / 333.3 MB, free: 11.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005555/0.01405, allocations: 342.5 kB / 333.6 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001299/0.01535, allocations: 0.7567 MB / 334.4 MB, free: 10.45 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005562/0.01591, allocations: 313.4 kB / 334.7 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000369/0.01627, allocations: 247 kB / 334.9 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.163e-05/0.0163, allocations: 1.438 kB / 334.9 MB, free: 10 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007433/0.01704, allocations: 0.5159 MB / 335.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.563e-06/0.01704, allocations: 0 / 335.4 MB, free: 9.543 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001678/0.01872, allocations: 0.9999 MB / 336.4 MB, free: 8.832 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001288/0.01885, allocations: 180.3 kB / 336.6 MB, free: 8.629 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001401/0.02025, allocations: 1.006 MB / 337.6 MB, free: 7.988 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.321e-05/0.0203, allocations: 30.7 kB / 337.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000132/0.02043, allocations: 163.3 kB / 337.8 MB, free: 7.809 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.96e-05/0.02052, allocations: 56.22 kB / 337.9 MB, free: 7.766 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002396/0.02076, allocations: 161.4 kB / 338 MB, free: 7.609 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001781/0.02094, allocations: 338.8 kB / 338.4 MB, free: 7.27 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004187/0.02136, allocations: 254.7 kB / 338.6 MB, free: 6.996 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004254/0.02179, allocations: 299 kB / 338.9 MB, free: 6.664 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006881/0.02247, allocations: 493.7 kB / 339.4 MB, free: 6.117 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.916e-06/0.02248, allocations: 3.938 kB / 339.4 MB, free: 6.113 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001176/0.02365, allocations: 0.7294 MB / 340.1 MB, free: 5.328 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001216/0.02377, allocations: 146.7 kB / 340.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.745e-06/0.02378, allocations: 0 / 340.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.801e-05/0.0238, allocations: 0 / 340.3 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.692e-05/0.02389, allocations: 12 kB / 340.3 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.0239, allocations: 7.984 kB / 340.3 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002354/0.02413, allocations: 23.89 kB / 340.3 MB, free: 5.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001383/0.02427, allocations: 111.9 kB / 340.4 MB, free: 5.008 MB / 302.1 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.0006734/0.02495, allocations: 0.5341 MB / 340.9 MB, free: 4.438 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001169/0.02506, allocations: 87.45 kB / 341 MB, free: 4.352 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002213/0.02528, allocations: 126.5 kB / 341.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.02529, allocations: 0 / 341.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.02529, allocations: 0 / 341.2 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.903e-06/0.0253, allocations: 4.125 kB / 341.2 MB, free: 4.219 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006951/0.02599, allocations: 0.4967 MB / 341.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.026, allocations: 0 / 341.7 MB, free: 3.691 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.924e-05/0.02605, allocations: 11.98 kB / 341.7 MB, free: 3.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.759e-06/0.02605, allocations: 11.94 kB / 341.7 MB, free: 3.668 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.839e-05/0.02611, allocations: 27.98 kB / 341.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.944e-06/0.02611, allocations: 0 / 341.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.02611, allocations: 0 / 341.7 MB, free: 3.641 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001295/0.02741, allocations: 0.8398 MB / 342.5 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008695/0.02828, allocations: 0.5046 MB / 343.1 MB, free: 2.215 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.02839, allocations: 31.92 kB / 343.1 MB, free: 2.184 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001861/0.02858, allocations: 16.11 kB / 343.1 MB, free: 2.168 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.02875, allocations: 51.95 kB / 343.1 MB, free: 2.117 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000145/0.0289, allocations: 119.9 kB / 343.3 MB, free: 2 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00106/0.02996, allocations: 0.7251 MB / 344 MB, free: 1.277 MB / 302.1 MB Notification: Performance of sort global known variables: time 9e-08/0.02996, allocations: 0 / 344 MB, free: 1.277 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003766/0.03034, allocations: 88 kB / 344.1 MB, free: 1.191 MB / 302.1 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.0001944/0.03053, allocations: 131.2 kB / 344.2 MB, free: 1.055 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00117/0.0317, allocations: 0.823 MB / 345 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.0317, allocations: 0 / 345 MB, free: 136 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006734/0.03237, allocations: 0.5238 MB / 345.6 MB, free: 15.54 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009738/0.03335, allocations: 198.2 kB / 345.7 MB, free: 15.36 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002681/0.03603, allocations: 1.479 MB / 347.2 MB, free: 13.82 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005363/0.03657, allocations: 365.3 kB / 347.6 MB, free: 13.45 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004273/0.03699, allocations: 169.1 kB / 347.7 MB, free: 13.28 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001892/0.03718, allocations: 76.36 kB / 347.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of SimCode: time 8.61e-07/0.03718, allocations: 4 kB / 347.8 MB, free: 13.2 MB / 318.1 MB Notification: Performance of Templates: time 0.01468/0.05186, allocations: 8.266 MB / 356.1 MB, free: 5.035 MB / 318.1 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.573696542531252]