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.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.001403/0.001403, allocations: 103.9 kB / 19.75 MB, free: 2.656 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.00248/0.00248, allocations: 193.9 kB / 22.93 MB, free: 5.484 MB / 14.72 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 1.831/1.831, allocations: 207.6 MB / 233.5 MB, free: 10.98 MB / 190.1 MB " [Timeout remaining time 178] 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.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_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: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001744/0.001744, allocations: 50.89 kB / 345.4 MB, free: 10.45 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3713/0.373, allocations: 49.12 MB / 394.5 MB, free: 9.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.004499/0.3775, allocations: 2.131 MB / 396.6 MB, free: 8.141 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003274/0.3808, allocations: 1.069 MB / 397.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002212/0.381, allocations: 3.312 kB / 397.7 MB, free: 7.41 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000313/0.3813, allocations: 40.73 kB / 397.8 MB, free: 7.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.3815, allocations: 58.81 kB / 397.8 MB, free: 7.34 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005228/0.382, allocations: 128.8 kB / 397.9 MB, free: 7.262 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006302/0.3826, allocations: 385.5 kB / 398.3 MB, free: 7.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002346/0.3828, allocations: 75.08 kB / 398.4 MB, free: 7.027 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00162/0.3845, allocations: 0.9669 MB / 399.4 MB, free: 6.91 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003699/0.3848, allocations: 202 kB / 399.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.385, allocations: 33.34 kB / 399.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001296/0.3851, allocations: 35.94 kB / 399.6 MB, free: 6.828 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003119/0.3854, allocations: 168.8 kB / 399.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000343/0.3857, allocations: 289 kB / 400.1 MB, free: 6.539 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00187/0.3876, allocations: 0.9821 MB / 401.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.815e-06/0.3876, allocations: 0 / 401.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.935e-06/0.3876, allocations: 1.281 kB / 401.1 MB, free: 6.207 MB / 318.1 MB Notification: Performance of Transformations before backend: time 2.098e-05/0.3876, allocations: 0 / 401.1 MB, free: 6.207 MB / 318.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.001926/0.3896, allocations: 1.146 MB / 402.2 MB, free: 5.273 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.574e-05/0.3896, allocations: 13.45 kB / 402.2 MB, free: 5.27 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.3898, allocations: 85.69 kB / 402.3 MB, free: 5.227 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004934/0.3903, allocations: 436.9 kB / 402.7 MB, free: 4.859 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.8e-05/0.3903, allocations: 15.41 kB / 402.7 MB, free: 4.855 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.721e-05/0.3904, allocations: 23.12 kB / 402.8 MB, free: 4.848 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007599/0.3911, allocations: 298.7 kB / 403.1 MB, free: 4.742 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.725e-05/0.3911, allocations: 7.875 kB / 403.1 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.375e-05/0.3912, allocations: 10.2 kB / 403.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.24e-05/0.3912, allocations: 3.312 kB / 403.1 MB, free: 4.73 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005123/0.3917, allocations: 212.2 kB / 403.3 MB, free: 4.66 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001675/0.3934, allocations: 0.8893 MB / 404.2 MB, free: 4.109 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004731/0.3939, allocations: 175.9 kB / 404.3 MB, free: 4.035 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002556/0.3941, allocations: 114 kB / 404.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.144e-05/0.3942, allocations: 1.375 kB / 404.5 MB, free: 3.992 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006629/0.3948, allocations: 388.7 kB / 404.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 1.432e-06/0.3948, allocations: 1.031 kB / 404.8 MB, free: 3.754 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001519/0.3963, allocations: 0.7448 MB / 405.6 MB, free: 3.391 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001033/0.3964, allocations: 175.4 kB / 405.8 MB, free: 3.195 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001585/0.398, allocations: 1.001 MB / 406.8 MB, free: 2.68 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.687e-05/0.3981, allocations: 40.14 kB / 406.8 MB, free: 2.641 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001068/0.3982, allocations: 154.6 kB / 406.9 MB, free: 2.496 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.315e-05/0.3983, allocations: 56.03 kB / 407 MB, free: 2.453 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002583/0.3985, allocations: 169.1 kB / 407.2 MB, free: 2.352 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 9.093e-05/0.3986, allocations: 341.2 kB / 407.5 MB, free: 2.016 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002532/0.3989, allocations: 127.1 kB / 407.6 MB, free: 1.953 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002611/0.3991, allocations: 157 kB / 407.8 MB, free: 1.852 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005141/0.3996, allocations: 474.1 kB / 408.2 MB, free: 1.445 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.3996, allocations: 4 kB / 408.2 MB, free: 1.441 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009132/0.4006, allocations: 0.5859 MB / 408.8 MB, free: 1.098 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.723e-05/0.4006, allocations: 133.7 kB / 409 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.81e-05/0.4007, allocations: 1.312 kB / 409 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.072e-05/0.4007, allocations: 1.578 kB / 409 MB, free: 0.957 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.471e-05/0.4008, allocations: 23.25 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.354e-06/0.4008, allocations: 1.406 kB / 409 MB, free: 0.9453 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002238/0.401, allocations: 29.33 kB / 409 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001494/0.4011, allocations: 115.4 kB / 409.1 MB, free: 0.918 MB / 318.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.0005529/0.4017, allocations: 0.5416 MB / 409.7 MB, free: 496 kB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001179/0.4018, allocations: 82.83 kB / 409.7 MB, free: 452 kB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002088/0.402, allocations: 129 kB / 409.9 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.807e-06/0.402, allocations: 1.438 kB / 409.9 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.402, allocations: 0 / 409.9 MB, free: 364 kB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.158e-06/0.402, allocations: 4 kB / 409.9 MB, free: 360 kB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007871/0.4028, allocations: 0.6296 MB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.4028, allocations: 0 / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.554e-05/0.4029, allocations: 10 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.394e-06/0.4029, allocations: 3.938 kB / 410.5 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.867e-05/0.4029, allocations: 27.42 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.913e-06/0.4029, allocations: 1.031 kB / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.4029, allocations: 0 / 410.6 MB, free: 15.82 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001179/0.4041, allocations: 0.7088 MB / 411.3 MB, free: 15.38 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007101/0.4048, allocations: 0.4967 MB / 411.8 MB, free: 14.96 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001077/0.4049, allocations: 24.59 kB / 411.8 MB, free: 14.95 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001735/0.4051, allocations: 19.36 kB / 411.8 MB, free: 14.94 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001742/0.4053, allocations: 46.86 kB / 411.8 MB, free: 14.91 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001421/0.4054, allocations: 118.4 kB / 412 MB, free: 14.9 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001062/0.4065, allocations: 0.7314 MB / 412.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4065, allocations: 0 / 412.7 MB, free: 14.45 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0004002/0.4069, allocations: 94.02 kB / 412.8 MB, free: 14.44 MB / 334.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.000223/0.4071, allocations: 136.3 kB / 412.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009517/0.4081, allocations: 0.5402 MB / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4081, allocations: 0 / 413.5 MB, free: 13.92 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005592/0.4086, allocations: 399.2 kB / 413.8 MB, free: 13.58 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008759/0.4095, allocations: 196.7 kB / 414 MB, free: 13.48 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002581/0.4121, allocations: 1.346 MB / 415.4 MB, free: 12.65 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009548/0.413, allocations: 0.9727 MB / 416.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0005529/0.4136, allocations: 165.4 kB / 416.5 MB, free: 11.67 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001913/0.4138, allocations: 69.42 kB / 416.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of SimCode: time 1.062e-06/0.4138, allocations: 1.375 kB / 416.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of Templates: time 0.01421/0.428, allocations: 7.848 MB / 424.4 MB, free: 5.281 MB / 334.1 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: 5.492938365787268]