Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0006924/0.0006924, allocations: 91.61 kB / 22.19 MB, free: 2.359 MB / 18.57 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.0007617/0.0007617, allocations: 167.3 kB / 25.45 MB, free: 9.355 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8537/0.8537, allocations: 158.6 MB / 187.2 MB, free: 3.035 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3.2.3_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_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.803e-06/1.803e-06, allocations: 0 / 299.7 MB, free: 6.91 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.95e-05/2.13e-05, allocations: 2.281 kB / 299.7 MB, free: 6.906 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002114/0.002135, allocations: 1.991 MB / 301.7 MB, free: 4.898 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001516/0.003651, allocations: 1.01 MB / 302.7 MB, free: 3.879 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.463e-05/0.003736, allocations: 7.938 kB / 302.7 MB, free: 3.871 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001456/0.003882, allocations: 39.59 kB / 302.7 MB, free: 3.832 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 7.762e-05/0.003959, allocations: 63.5 kB / 302.8 MB, free: 3.77 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003272/0.004286, allocations: 131.7 kB / 302.9 MB, free: 3.641 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003216/0.004608, allocations: 399 kB / 303.3 MB, free: 3.25 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001576/0.004766, allocations: 75.53 kB / 303.4 MB, free: 3.18 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006256/0.005391, allocations: 1.022 MB / 304.4 MB, free: 2.156 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001601/0.005551, allocations: 179.5 kB / 304.6 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.776e-05/0.005599, allocations: 36 kB / 304.6 MB, free: 1.945 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.497e-05/0.005644, allocations: 32 kB / 304.7 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001109/0.005755, allocations: 167.4 kB / 304.8 MB, free: 1.75 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000112/0.005867, allocations: 147.4 kB / 305 MB, free: 1.605 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005903/0.006457, allocations: 0.9891 MB / 306 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006459, allocations: 0 / 306 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of FrontEnd: time 8.02e-07/0.00646, allocations: 0 / 306 MB, free: 0.6133 MB / 282.7 MB Notification: Performance of Transformations before backend: time 8.095e-06/0.006468, allocations: 0 / 306 MB, free: 0.6133 MB / 282.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.001034/0.007502, allocations: 1.074 MB / 307 MB, free: 15.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.104e-05/0.007533, allocations: 11.98 kB / 307 MB, free: 15.47 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.732e-05/0.00761, allocations: 84.42 kB / 307.1 MB, free: 15.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002947/0.007905, allocations: 378.1 kB / 307.5 MB, free: 14.99 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.138e-05/0.007936, allocations: 24.36 kB / 307.5 MB, free: 14.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.247e-05/0.007969, allocations: 20.38 kB / 307.5 MB, free: 14.95 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004189/0.008387, allocations: 428.6 kB / 308 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.008397, allocations: 4.188 kB / 308 MB, free: 14.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.553e-05/0.008423, allocations: 8.375 kB / 308 MB, free: 14.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.008429, allocations: 11.88 kB / 308 MB, free: 14.48 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003126/0.008741, allocations: 334.7 kB / 308.3 MB, free: 14.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007363/0.009477, allocations: 0.7533 MB / 309.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003216/0.009799, allocations: 305.3 kB / 309.4 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.009988, allocations: 251.5 kB / 309.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.746e-05/0.01001, allocations: 3.984 kB / 309.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003879/0.01039, allocations: 0.5164 MB / 310.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 1.723e-06/0.0104, allocations: 0 / 310.1 MB, free: 12.15 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.0008788/0.01127, allocations: 0.9973 MB / 311.1 MB, free: 11.07 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.065e-05/0.01134, allocations: 178.2 kB / 311.3 MB, free: 10.86 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007623/0.01211, allocations: 1 MB / 312.3 MB, free: 9.852 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.71e-05/0.01213, allocations: 33.7 kB / 312.3 MB, free: 9.812 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.552e-05/0.01221, allocations: 161.8 kB / 312.5 MB, free: 9.652 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.791e-05/0.01226, allocations: 59.58 kB / 312.5 MB, free: 9.594 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.01238, allocations: 169.3 kB / 312.7 MB, free: 9.422 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 7.98e-05/0.01246, allocations: 330.8 kB / 313 MB, free: 9.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002093/0.01267, allocations: 258.8 kB / 313.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002096/0.01288, allocations: 306.7 kB / 313.6 MB, free: 8.477 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005921/0.01347, allocations: 497.6 kB / 314.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.053e-06/0.01348, allocations: 0 / 314.1 MB, free: 7.926 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0005874/0.01406, allocations: 0.7293 MB / 314.8 MB, free: 7.141 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.932e-05/0.01412, allocations: 138.8 kB / 314.9 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.01413, allocations: 0 / 314.9 MB, free: 6.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.25e-05/0.01414, allocations: 4 kB / 314.9 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.812e-05/0.0142, allocations: 23.98 kB / 315 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.0142, allocations: 0 / 315 MB, free: 6.953 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001214/0.01433, allocations: 19.98 kB / 315 MB, free: 6.934 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.011e-05/0.0144, allocations: 111.9 kB / 315.1 MB, free: 6.824 MB / 298.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.0003544/0.01475, allocations: 0.5262 MB / 315.6 MB, free: 6.262 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.783e-05/0.01481, allocations: 95.52 kB / 315.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001233/0.01493, allocations: 142.3 kB / 315.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.004e-06/0.01493, allocations: 0 / 315.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.01494, allocations: 0 / 315.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.01494, allocations: 0 / 315.9 MB, free: 6.023 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003587/0.0153, allocations: 0.4928 MB / 316.3 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.71e-07/0.0153, allocations: 0 / 316.3 MB, free: 5.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.435e-05/0.01532, allocations: 12 kB / 316.4 MB, free: 5.488 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.01533, allocations: 3.984 kB / 316.4 MB, free: 5.484 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.962e-05/0.01536, allocations: 31.97 kB / 316.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.01536, allocations: 0 / 316.4 MB, free: 5.453 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.01536, allocations: 4 kB / 316.4 MB, free: 5.449 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006716/0.01603, allocations: 0.8456 MB / 317.2 MB, free: 4.535 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004849/0.01652, allocations: 0.493 MB / 317.7 MB, free: 4.035 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.743e-05/0.01657, allocations: 23.94 kB / 317.8 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.766e-05/0.01666, allocations: 15.98 kB / 317.8 MB, free: 3.996 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001074/0.01677, allocations: 55.94 kB / 317.8 MB, free: 3.941 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.531e-05/0.01683, allocations: 115.9 kB / 317.9 MB, free: 3.828 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0005607/0.01739, allocations: 0.7289 MB / 318.7 MB, free: 3.102 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01739, allocations: 0 / 318.7 MB, free: 3.102 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002173/0.01761, allocations: 91.89 kB / 318.8 MB, free: 3.012 MB / 298.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.0001071/0.01772, allocations: 131.2 kB / 318.9 MB, free: 2.875 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0005864/0.01831, allocations: 0.8198 MB / 319.7 MB, free: 1.957 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.01831, allocations: 3.938 kB / 319.7 MB, free: 1.953 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003141/0.01862, allocations: 0.5239 MB / 320.2 MB, free: 1.355 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004335/0.01906, allocations: 199.2 kB / 320.4 MB, free: 1.164 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001575/0.02063, allocations: 1.546 MB / 322 MB, free: 15.55 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002673/0.0209, allocations: 365.3 kB / 322.3 MB, free: 15.18 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001415/0.02104, allocations: 104.3 kB / 322.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of SimCode: time 6.11e-07/0.02104, allocations: 8.156 kB / 322.4 MB, free: 15.07 MB / 314.7 MB Notification: Performance of Templates: time 0.004978/0.02602, allocations: 5.452 MB / 327.9 MB, free: 9.609 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile [Timeout 660] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.664069975726306]