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.0008567/0.0008567, allocations: 88.28 kB / 21.44 MB, free: 3.129 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.00352/0.00352, allocations: 159.7 kB / 24.7 MB, free: 9.441 MB / 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.8401/0.8401, allocations: 177 MB / 204.9 MB, free: 5.762 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.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.763e-06/1.763e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.484e-05/2.66e-05, allocations: 2.281 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002997/0.003024, allocations: 2 MB / 327.8 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002317/0.00534, allocations: 1.013 MB / 328.8 MB, free: 12.37 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001059/0.005446, allocations: 7.938 kB / 328.8 MB, free: 12.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001846/0.005631, allocations: 35.64 kB / 328.8 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001231/0.005754, allocations: 55.53 kB / 328.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004267/0.00618, allocations: 135.7 kB / 329 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0007501/0.006931, allocations: 407 kB / 329.4 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000205/0.007136, allocations: 75.58 kB / 329.5 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009923/0.008128, allocations: 1.022 MB / 330.5 MB, free: 10.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.008368, allocations: 175.5 kB / 330.7 MB, free: 10.47 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.654e-05/0.008445, allocations: 32 kB / 330.7 MB, free: 10.44 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.28e-05/0.008508, allocations: 39.94 kB / 330.8 MB, free: 10.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001571/0.008665, allocations: 171.3 kB / 330.9 MB, free: 10.23 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000177/0.008842, allocations: 139.4 kB / 331.1 MB, free: 10.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008528/0.009694, allocations: 0.9814 MB / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.009698, allocations: 7.938 kB / 332.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.463e-06/0.0097, allocations: 0 / 332.1 MB, free: 9.105 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.098e-05/0.009711, allocations: 0 / 332.1 MB, free: 9.105 MB / 298.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.001212/0.01092, allocations: 1.066 MB / 333.1 MB, free: 7.98 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.303e-05/0.01097, allocations: 11.98 kB / 333.1 MB, free: 7.969 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001317/0.0111, allocations: 84.42 kB / 333.2 MB, free: 7.887 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000431/0.01153, allocations: 370.3 kB / 333.6 MB, free: 7.5 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.324e-05/0.01157, allocations: 16.38 kB / 333.6 MB, free: 7.484 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.178e-05/0.01162, allocations: 20.36 kB / 333.6 MB, free: 7.465 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006733/0.0123, allocations: 428.6 kB / 334 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.158e-05/0.01231, allocations: 192 / 334 MB, free: 7.016 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.216e-05/0.01235, allocations: 24.3 kB / 334.1 MB, free: 6.992 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.043e-05/0.01236, allocations: 11.94 kB / 334.1 MB, free: 6.98 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005269/0.01289, allocations: 338.7 kB / 334.4 MB, free: 6.625 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001203/0.01409, allocations: 0.7494 MB / 335.1 MB, free: 5.844 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005033/0.01459, allocations: 309.2 kB / 335.4 MB, free: 5.508 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002587/0.01485, allocations: 247.6 kB / 335.7 MB, free: 5.238 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.01487, allocations: 4 kB / 335.7 MB, free: 5.234 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004169/0.01529, allocations: 0.5164 MB / 336.2 MB, free: 4.656 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.894e-06/0.01529, allocations: 3.938 kB / 336.2 MB, free: 4.652 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001161/0.01645, allocations: 1.006 MB / 337.2 MB, free: 3.566 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.602e-05/0.01652, allocations: 178.2 kB / 337.4 MB, free: 3.355 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007676/0.01728, allocations: 1 MB / 338.4 MB, free: 2.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.88e-05/0.01731, allocations: 37.7 kB / 338.4 MB, free: 2.297 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.746e-05/0.01739, allocations: 153.9 kB / 338.6 MB, free: 2.145 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.022e-05/0.01744, allocations: 63.52 kB / 338.6 MB, free: 2.082 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001242/0.01757, allocations: 165.3 kB / 338.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.525e-05/0.01765, allocations: 334.8 kB / 339.1 MB, free: 1.578 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001956/0.01785, allocations: 250.8 kB / 339.4 MB, free: 1.309 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002093/0.01806, allocations: 303 kB / 339.7 MB, free: 0.9727 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003488/0.0184, allocations: 493.7 kB / 340.2 MB, free: 436 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.01841, allocations: 3.938 kB / 340.2 MB, free: 432 kB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005938/0.019, allocations: 0.7254 MB / 340.9 MB, free: 15.64 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 6.575e-05/0.01907, allocations: 146.7 kB / 341 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.719e-06/0.01907, allocations: 0 / 341 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.387e-05/0.01908, allocations: 4 kB / 341 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.914e-05/0.01914, allocations: 8.062 kB / 341 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.186e-06/0.01915, allocations: 11.94 kB / 341 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001223/0.01927, allocations: 27.88 kB / 341.1 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.25e-05/0.01935, allocations: 111.9 kB / 341.2 MB, free: 15.31 MB / 314.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.0003589/0.01971, allocations: 0.5264 MB / 341.7 MB, free: 14.75 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.726e-05/0.01976, allocations: 83.47 kB / 341.8 MB, free: 14.67 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001301/0.01989, allocations: 138.5 kB / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.0199, allocations: 0 / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.958e-06/0.0199, allocations: 0 / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.975e-06/0.0199, allocations: 0 / 341.9 MB, free: 14.53 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000365/0.02027, allocations: 0.4929 MB / 342.4 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.02027, allocations: 0 / 342.4 MB, free: 14 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.693e-05/0.0203, allocations: 19.92 kB / 342.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.341e-06/0.0203, allocations: 3.938 kB / 342.4 MB, free: 13.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.017e-05/0.02033, allocations: 27.98 kB / 342.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.82e-07/0.02033, allocations: 0 / 342.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.202e-06/0.02033, allocations: 0 / 342.5 MB, free: 13.95 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009256/0.02126, allocations: 0.8378 MB / 343.3 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004809/0.02174, allocations: 0.4968 MB / 343.8 MB, free: 12.54 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.724e-05/0.0218, allocations: 23.94 kB / 343.8 MB, free: 12.52 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.965e-05/0.02189, allocations: 20.11 kB / 343.8 MB, free: 12.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001076/0.02199, allocations: 55.94 kB / 343.9 MB, free: 12.44 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.706e-05/0.02206, allocations: 119.9 kB / 344 MB, free: 12.32 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0005592/0.02262, allocations: 0.7252 MB / 344.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.02262, allocations: 0 / 344.7 MB, free: 11.6 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0002113/0.02283, allocations: 91.94 kB / 344.8 MB, free: 11.51 MB / 314.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.0001263/0.02296, allocations: 135.2 kB / 345 MB, free: 11.37 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.0005948/0.02355, allocations: 0.8191 MB / 345.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 1.854e-06/0.02356, allocations: 0 / 345.8 MB, free: 10.45 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000306/0.02386, allocations: 0.5237 MB / 346.3 MB, free: 9.855 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004464/0.02431, allocations: 203.5 kB / 346.5 MB, free: 9.672 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.02564, allocations: 1.546 MB / 348.1 MB, free: 8.062 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002801/0.02592, allocations: 373.4 kB / 348.4 MB, free: 7.676 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001481/0.02607, allocations: 96.3 kB / 348.5 MB, free: 7.582 MB / 314.7 MB Notification: Performance of SimCode: time 5.71e-07/0.02607, allocations: 4 kB / 348.5 MB, free: 7.578 MB / 314.7 MB Notification: Performance of Templates: time 0.004902/0.03098, allocations: 5.455 MB / 354 MB, free: 2.137 MB / 314.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: 5.15534838847816]