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.001804/0.001804, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002404/0.002404, allocations: 205.4 kB / 23.73 MB, free: 4.379 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.531/1.531, allocations: 230.6 MB / 257.5 MB, free: 7.801 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.001601/0.001601, allocations: 43.92 kB / 378.2 MB, free: 2.473 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3235, allocations: 53.36 MB / 431.6 MB, free: 6.727 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.0036/0.3271, allocations: 2.025 MB / 433.6 MB, free: 4.699 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002393/0.3295, allocations: 1.002 MB / 434.6 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001038/0.3296, allocations: 4 kB / 434.6 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001715/0.3298, allocations: 43.58 kB / 434.6 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001189/0.3299, allocations: 51.58 kB / 434.7 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004118/0.3303, allocations: 135.8 kB / 434.8 MB, free: 3.461 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004964/0.3308, allocations: 387.1 kB / 435.2 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000186/0.331, allocations: 83.52 kB / 435.3 MB, free: 2.996 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00109/0.3321, allocations: 0.9708 MB / 436.3 MB, free: 2.023 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003162/0.3324, allocations: 199.2 kB / 436.5 MB, free: 1.828 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.105e-05/0.3325, allocations: 36 kB / 436.5 MB, free: 1.793 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.947e-05/0.3325, allocations: 36 kB / 436.5 MB, free: 1.758 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001951/0.3327, allocations: 167.2 kB / 436.7 MB, free: 1.594 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002569/0.333, allocations: 198.6 kB / 436.9 MB, free: 1.398 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001147/0.3341, allocations: 0.9905 MB / 437.9 MB, free: 420 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.793e-06/0.3342, allocations: 4 kB / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3342, allocations: 0 / 437.9 MB, free: 416 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.064e-05/0.3342, allocations: 4 kB / 437.9 MB, free: 412 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.001548/0.3357, allocations: 1.066 MB / 438.9 MB, free: 15.28 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.135e-05/0.3358, allocations: 8.031 kB / 439 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001431/0.3359, allocations: 84.42 kB / 439 MB, free: 15.19 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005722/0.3365, allocations: 375 kB / 439.4 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.99e-05/0.3365, allocations: 16.38 kB / 439.4 MB, free: 14.78 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.031e-05/0.3366, allocations: 16.38 kB / 439.4 MB, free: 14.76 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007935/0.3374, allocations: 440.2 kB / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.027e-05/0.3374, allocations: 0 / 439.9 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.3374, allocations: 15.97 kB / 439.9 MB, free: 14.29 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.274e-06/0.3374, allocations: 4 kB / 439.9 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005727/0.338, allocations: 338.7 kB / 440.2 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001531/0.3395, allocations: 0.7418 MB / 441 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005733/0.3401, allocations: 305.2 kB / 441.3 MB, free: 12.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003715/0.3405, allocations: 243.6 kB / 441.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.295e-05/0.3405, allocations: 0 / 441.5 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007489/0.3413, allocations: 0.5181 MB / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=24): time 1.463e-06/0.3413, allocations: 0 / 442 MB, free: 11.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=24): time 0.001777/0.343, allocations: 1.005 MB / 443 MB, free: 10.89 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001325/0.3432, allocations: 182.2 kB / 443.2 MB, free: 10.68 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001589/0.3448, allocations: 1 MB / 444.2 MB, free: 9.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.789e-05/0.3448, allocations: 37.8 kB / 444.2 MB, free: 9.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001261/0.3449, allocations: 157.8 kB / 444.4 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.913e-05/0.345, allocations: 59.58 kB / 444.4 MB, free: 9.406 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002327/0.3453, allocations: 169.3 kB / 444.6 MB, free: 9.234 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001673/0.3454, allocations: 334.8 kB / 444.9 MB, free: 8.898 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000396/0.3458, allocations: 254.7 kB / 445.2 MB, free: 8.625 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004107/0.3462, allocations: 299.7 kB / 445.5 MB, free: 8.293 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007115/0.3469, allocations: 0.4938 MB / 446 MB, free: 7.734 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.258e-05/0.347, allocations: 4 kB / 446 MB, free: 7.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.00123/0.3482, allocations: 0.7176 MB / 446.7 MB, free: 6.957 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001578/0.3483, allocations: 138.8 kB / 446.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.002e-06/0.3483, allocations: 0 / 446.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.3484, allocations: 4 kB / 446.8 MB, free: 6.793 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.352e-05/0.3485, allocations: 11.98 kB / 446.8 MB, free: 6.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.077e-06/0.3485, allocations: 4 kB / 446.8 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002341/0.3487, allocations: 27.94 kB / 446.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001567/0.3489, allocations: 111.9 kB / 447 MB, free: 6.641 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.0006949/0.3496, allocations: 0.534 MB / 447.5 MB, free: 6.074 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001135/0.3497, allocations: 79.53 kB / 447.6 MB, free: 5.996 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002731/0.3499, allocations: 126.5 kB / 447.7 MB, free: 5.871 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.3499, allocations: 3.984 kB / 447.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.35, allocations: 4.125 kB / 447.7 MB, free: 5.863 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.995e-06/0.35, allocations: 4 kB / 447.7 MB, free: 5.859 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006609/0.3506, allocations: 0.4967 MB / 448.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.413e-06/0.3506, allocations: 0 / 448.2 MB, free: 5.332 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.994e-05/0.3507, allocations: 12 kB / 448.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.825e-06/0.3507, allocations: 0 / 448.2 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.914e-05/0.3507, allocations: 31.92 kB / 448.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.743e-06/0.3507, allocations: 0 / 448.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.283e-06/0.3507, allocations: 0 / 448.3 MB, free: 5.289 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001361/0.3521, allocations: 0.8416 MB / 449.1 MB, free: 4.379 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001038/0.3531, allocations: 0.4968 MB / 449.6 MB, free: 3.871 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001133/0.3533, allocations: 24 kB / 449.6 MB, free: 3.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002002/0.3535, allocations: 19.98 kB / 449.6 MB, free: 3.828 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001682/0.3536, allocations: 43.95 kB / 449.7 MB, free: 3.785 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000138/0.3538, allocations: 119.9 kB / 449.8 MB, free: 3.668 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001129/0.3549, allocations: 0.7328 MB / 450.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3549, allocations: 0 / 450.5 MB, free: 2.941 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003801/0.3553, allocations: 84 kB / 450.6 MB, free: 2.859 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.0002295/0.3555, allocations: 134.8 kB / 450.8 MB, free: 2.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001265/0.3568, allocations: 0.8154 MB / 451.6 MB, free: 1.801 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3568, allocations: 3.938 kB / 451.6 MB, free: 1.797 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006134/0.3574, allocations: 0.5237 MB / 452.1 MB, free: 1.199 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000866/0.3582, allocations: 199.6 kB / 452.3 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002657/0.3609, allocations: 1.471 MB / 453.8 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005104/0.3614, allocations: 369.3 kB / 454.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003596/0.3618, allocations: 161.1 kB / 454.3 MB, free: 14.95 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001851/0.362, allocations: 75.28 kB / 454.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of SimCode: time 7.51e-07/0.362, allocations: 0 / 454.4 MB, free: 14.87 MB / 366.1 MB Notification: Performance of Templates: time 0.0154/0.3774, allocations: 8.503 MB / 462.9 MB, free: 6.465 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 -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/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.8690695548430085]