Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001282/0.001282, allocations: 107.5 kB / 20.43 MB, free: 1.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001311/0.001311, allocations: 187.5 kB / 23.7 MB, free: 4.188 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.496/1.496, allocations: 225.7 MB / 252.5 MB, free: 12.85 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001729/0.001729, allocations: 51.91 kB / 370.9 MB, free: 9.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2932/0.295, allocations: 52.19 MB / 423.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003924/0.2989, allocations: 1.982 MB / 425 MB, free: 12.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002456/0.3013, allocations: 0.9785 MB / 426 MB, free: 11.52 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001161/0.3015, allocations: 3.938 kB / 426 MB, free: 11.51 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000196/0.3016, allocations: 39.59 kB / 426.1 MB, free: 11.47 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001209/0.3018, allocations: 55.52 kB / 426.1 MB, free: 11.42 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.3022, allocations: 135.8 kB / 426.3 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005419/0.3028, allocations: 399.1 kB / 426.6 MB, free: 10.89 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002163/0.303, allocations: 75.5 kB / 426.7 MB, free: 10.82 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001081/0.3041, allocations: 0.9669 MB / 427.7 MB, free: 9.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002866/0.3044, allocations: 199.2 kB / 427.9 MB, free: 9.652 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.178e-05/0.3044, allocations: 32 kB / 427.9 MB, free: 9.621 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.143e-05/0.3045, allocations: 36 kB / 427.9 MB, free: 9.586 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001852/0.3047, allocations: 163.3 kB / 428.1 MB, free: 9.426 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002321/0.305, allocations: 198.5 kB / 428.3 MB, free: 9.23 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001036/0.306, allocations: 0.9867 MB / 429.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.301e-06/0.306, allocations: 0 / 429.3 MB, free: 8.246 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.306, allocations: 4 kB / 429.3 MB, free: 8.242 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.916e-06/0.306, allocations: 0 / 429.3 MB, free: 8.242 MB / 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.001545/0.3075, allocations: 1.078 MB / 430.4 MB, free: 7.105 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.634e-05/0.3076, allocations: 8.031 kB / 430.4 MB, free: 7.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001477/0.3077, allocations: 84.42 kB / 430.5 MB, free: 7.016 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006169/0.3084, allocations: 375 kB / 430.8 MB, free: 6.621 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.105e-05/0.3084, allocations: 16.31 kB / 430.8 MB, free: 6.605 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.3085, allocations: 20.38 kB / 430.9 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008045/0.3093, allocations: 424.5 kB / 431.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.452e-05/0.3093, allocations: 0 / 431.3 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.394e-05/0.3093, allocations: 12 kB / 431.3 MB, free: 6.129 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.919e-06/0.3093, allocations: 8 kB / 431.3 MB, free: 6.121 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005942/0.3099, allocations: 338.6 kB / 431.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001392/0.3113, allocations: 0.7457 MB / 432.4 MB, free: 4.988 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005434/0.3119, allocations: 313.2 kB / 432.7 MB, free: 4.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003639/0.3122, allocations: 247.6 kB / 432.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.289e-05/0.3122, allocations: 0 / 432.9 MB, free: 4.379 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007146/0.313, allocations: 0.5037 MB / 433.4 MB, free: 3.816 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.943e-06/0.313, allocations: 8 kB / 433.4 MB, free: 3.809 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001533/0.3145, allocations: 1.005 MB / 434.4 MB, free: 2.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001248/0.3146, allocations: 174.2 kB / 434.6 MB, free: 2.52 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001354/0.316, allocations: 0.9962 MB / 435.6 MB, free: 1.516 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.198e-05/0.316, allocations: 37.69 kB / 435.6 MB, free: 1.473 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000147/0.3162, allocations: 165.9 kB / 435.8 MB, free: 1.305 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.647e-05/0.3163, allocations: 51.58 kB / 435.9 MB, free: 1.254 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002208/0.3165, allocations: 165.3 kB / 436 MB, free: 1.086 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3166, allocations: 338.8 kB / 436.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003837/0.317, allocations: 250.8 kB / 436.6 MB, free: 488 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003819/0.3174, allocations: 291 kB / 436.9 MB, free: 156 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006665/0.3181, allocations: 0.4977 MB / 437.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.3181, allocations: 3.938 kB / 437.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001079/0.3192, allocations: 0.7254 MB / 438.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001095/0.3193, allocations: 134.8 kB / 438.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.215e-06/0.3193, allocations: 4 kB / 438.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.968e-05/0.3193, allocations: 3.984 kB / 438.2 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.684e-05/0.3194, allocations: 15.94 kB / 438.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.015e-06/0.3194, allocations: 64 / 438.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002139/0.3196, allocations: 31.88 kB / 438.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001242/0.3197, allocations: 115.9 kB / 438.4 MB, free: 14.48 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.0006026/0.3203, allocations: 0.5341 MB / 438.9 MB, free: 13.91 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001031/0.3204, allocations: 79.53 kB / 439 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001998/0.3206, allocations: 134.5 kB / 439.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-06/0.3206, allocations: 4 kB / 439.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.839e-06/0.3206, allocations: 0 / 439.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.957e-06/0.3206, allocations: 0 / 439.1 MB, free: 13.7 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006533/0.3213, allocations: 0.4969 MB / 439.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.3213, allocations: 3.938 kB / 439.6 MB, free: 13.17 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.028e-05/0.3213, allocations: 8 kB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.3213, allocations: 3.984 kB / 439.7 MB, free: 13.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.576e-05/0.3214, allocations: 23.98 kB / 439.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.452e-06/0.3214, allocations: 0 / 439.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.21e-07/0.3214, allocations: 0 / 439.7 MB, free: 13.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.3226, allocations: 0.8416 MB / 440.5 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008696/0.3234, allocations: 0.4969 MB / 441 MB, free: 11.71 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.809e-05/0.3235, allocations: 27.94 kB / 441 MB, free: 11.69 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001665/0.3237, allocations: 15.98 kB / 441.1 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.3238, allocations: 51.95 kB / 441.1 MB, free: 11.62 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.324, allocations: 115.9 kB / 441.2 MB, free: 11.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001007/0.325, allocations: 0.7328 MB / 442 MB, free: 10.78 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.325, allocations: 0 / 442 MB, free: 10.78 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000359/0.3253, allocations: 91.95 kB / 442.1 MB, free: 10.69 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.0001824/0.3255, allocations: 130.8 kB / 442.2 MB, free: 10.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00107/0.3266, allocations: 0.8037 MB / 443 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.3266, allocations: 0 / 443 MB, free: 9.648 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005687/0.3272, allocations: 0.5315 MB / 443.5 MB, free: 9.043 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008137/0.328, allocations: 214.3 kB / 443.7 MB, free: 8.852 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002209/0.3302, allocations: 1.467 MB / 445.2 MB, free: 7.332 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004968/0.3307, allocations: 369.2 kB / 445.6 MB, free: 6.949 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003431/0.331, allocations: 161.1 kB / 445.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000172/0.3312, allocations: 79.27 kB / 445.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3312, allocations: 0 / 445.8 MB, free: 6.711 MB / 350.1 MB Notification: Performance of Templates: time 0.01386/0.3451, allocations: 8.477 MB / 454.3 MB, free: 14.32 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.898106662556529]