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.001999/0.001999, allocations: 111 kB / 21.18 MB, free: 0.6758 MB / 14.72 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.002926/0.002926, allocations: 209.2 kB / 24.47 MB, free: 3.977 MB / 14.72 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.621/1.621, allocations: 230.6 MB / 258.2 MB, free: 7.793 MB / 206.1 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 0.001649/0.001649, allocations: 55.86 kB / 379 MB, free: 2.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3376/0.3392, allocations: 53.36 MB / 432.3 MB, free: 6.742 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004033/0.3433, allocations: 2.002 MB / 434.3 MB, free: 4.734 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003046/0.3463, allocations: 1.006 MB / 435.3 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001695/0.3465, allocations: 11.88 kB / 435.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002407/0.3467, allocations: 31.66 kB / 435.4 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001432/0.3469, allocations: 59.56 kB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005353/0.3474, allocations: 131.8 kB / 435.6 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005866/0.348, allocations: 403.1 kB / 436 MB, free: 3.098 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002836/0.3483, allocations: 74.48 kB / 436 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001337/0.3496, allocations: 0.967 MB / 437 MB, free: 2.055 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003444/0.3499, allocations: 203.2 kB / 437.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.35, allocations: 32 kB / 437.2 MB, free: 1.824 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.578e-05/0.3501, allocations: 36 kB / 437.3 MB, free: 1.789 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002437/0.3504, allocations: 167.3 kB / 437.4 MB, free: 1.625 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003007/0.3507, allocations: 198.6 kB / 437.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001197/0.3519, allocations: 0.9919 MB / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.524e-06/0.3519, allocations: 0 / 438.6 MB, free: 448 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3519, allocations: 4 kB / 438.6 MB, free: 444 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.065e-05/0.3519, allocations: 0 / 438.6 MB, free: 444 kB / 334.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.001772/0.3537, allocations: 1.074 MB / 439.7 MB, free: 15.3 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.303e-05/0.3537, allocations: 8.031 kB / 439.7 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001709/0.3539, allocations: 88.42 kB / 439.8 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006896/0.3546, allocations: 371 kB / 440.1 MB, free: 14.82 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.968e-05/0.3546, allocations: 12.38 kB / 440.2 MB, free: 14.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.609e-05/0.3547, allocations: 20.38 kB / 440.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009057/0.3556, allocations: 436.2 kB / 440.6 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.3556, allocations: 4 kB / 440.6 MB, free: 14.32 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.908e-05/0.3557, allocations: 11.98 kB / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.3557, allocations: 8 kB / 440.6 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005829/0.3563, allocations: 330.7 kB / 441 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00152/0.3578, allocations: 0.7379 MB / 441.7 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006696/0.3585, allocations: 313.2 kB / 442 MB, free: 12.85 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003989/0.3589, allocations: 243.6 kB / 442.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.3589, allocations: 0 / 442.2 MB, free: 12.58 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008776/0.3598, allocations: 0.5165 MB / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 2.074e-06/0.3598, allocations: 4 kB / 442.8 MB, free: 12 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001771/0.3615, allocations: 0.9987 MB / 443.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001436/0.3617, allocations: 174.2 kB / 443.9 MB, free: 10.71 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001492/0.3632, allocations: 1.004 MB / 444.9 MB, free: 9.699 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.597e-05/0.3632, allocations: 37.64 kB / 445 MB, free: 9.656 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001569/0.3634, allocations: 161.9 kB / 445.1 MB, free: 9.492 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.462e-05/0.3635, allocations: 55.67 kB / 445.2 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002503/0.3637, allocations: 169.3 kB / 445.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001888/0.3639, allocations: 338.8 kB / 445.7 MB, free: 8.926 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000383/0.3643, allocations: 250.8 kB / 445.9 MB, free: 8.656 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004135/0.3647, allocations: 307.7 kB / 446.2 MB, free: 8.316 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006832/0.3654, allocations: 493.7 kB / 446.7 MB, free: 7.77 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.457e-05/0.3654, allocations: 4 kB / 446.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001338/0.3667, allocations: 0.7254 MB / 447.4 MB, free: 6.984 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001603/0.3669, allocations: 138.8 kB / 447.6 MB, free: 6.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.253e-05/0.3669, allocations: 4 kB / 447.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.185e-05/0.3669, allocations: 0 / 447.6 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001217/0.3671, allocations: 12 kB / 447.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.3671, allocations: 64 / 447.6 MB, free: 6.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003828/0.3675, allocations: 35.88 kB / 447.6 MB, free: 6.773 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000193/0.3676, allocations: 107.9 kB / 447.7 MB, free: 6.668 MB / 350.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.001019/0.3687, allocations: 0.534 MB / 448.3 MB, free: 6.102 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001758/0.3688, allocations: 79.53 kB / 448.3 MB, free: 6.023 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003543/0.3692, allocations: 130.5 kB / 448.5 MB, free: 5.895 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.898e-06/0.3692, allocations: 4 kB / 448.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.3692, allocations: 0 / 448.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.3692, allocations: 0 / 448.5 MB, free: 5.891 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001101/0.3703, allocations: 0.5006 MB / 449 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.3703, allocations: 0 / 449 MB, free: 5.359 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.305e-05/0.3704, allocations: 15.98 kB / 449 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.003e-06/0.3704, allocations: 4 kB / 449 MB, free: 5.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.117e-05/0.3705, allocations: 19.98 kB / 449 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.3705, allocations: 3.938 kB / 449 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.405e-06/0.3705, allocations: 4 kB / 449 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002001/0.3725, allocations: 0.8413 MB / 449.9 MB, free: 4.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001424/0.3739, allocations: 0.4968 MB / 450.4 MB, free: 3.898 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.3741, allocations: 24 kB / 450.4 MB, free: 3.875 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003216/0.3744, allocations: 15.98 kB / 450.4 MB, free: 3.859 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002461/0.3747, allocations: 55.94 kB / 450.4 MB, free: 3.805 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002061/0.3749, allocations: 115.9 kB / 450.6 MB, free: 3.691 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001644/0.3765, allocations: 0.7251 MB / 451.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3765, allocations: 0 / 451.3 MB, free: 2.973 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.3772, allocations: 88 kB / 451.4 MB, free: 2.887 MB / 350.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.000284/0.3775, allocations: 138.7 kB / 451.5 MB, free: 2.738 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001872/0.3794, allocations: 0.8115 MB / 452.3 MB, free: 1.828 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 9.468e-06/0.3794, allocations: 4 kB / 452.3 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000898/0.3803, allocations: 0.5238 MB / 452.8 MB, free: 1.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001334/0.3816, allocations: 210.5 kB / 453 MB, free: 1.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003943/0.3855, allocations: 1.471 MB / 454.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008103/0.3864, allocations: 361.3 kB / 454.9 MB, free: 15.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006067/0.387, allocations: 165.1 kB / 455 MB, free: 14.98 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002767/0.3872, allocations: 79.28 kB / 455.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of SimCode: time 1.923e-06/0.3872, allocations: 0 / 455.1 MB, free: 14.9 MB / 366.1 MB Notification: Performance of Templates: time 0.0211/0.4083, allocations: 8.502 MB / 463.6 MB, free: 6.488 MB / 366.1 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=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/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: 5.50492326800304]