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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) 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=5000,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=5000,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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001564/0.001564, allocations: 110.7 kB / 18.35 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001456/0.001456, allocations: 184.2 kB / 19.29 MB, free: 3.918 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.56/1.56, allocations: 205.1 MB / 225.2 MB, free: 12.26 MB / 190.1 MB 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.001425/0.001425, allocations: 47.94 kB / 329.1 MB, free: 3.355 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1155, allocations: 46.62 MB / 375.7 MB, free: 4.629 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003638/0.1192, allocations: 2.127 MB / 377.9 MB, free: 2.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002342/0.1216, allocations: 1.061 MB / 378.9 MB, free: 1.422 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001134/0.1217, allocations: 3.938 kB / 378.9 MB, free: 1.418 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001832/0.1219, allocations: 35.66 kB / 379 MB, free: 1.383 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001257/0.1221, allocations: 51.52 kB / 379 MB, free: 1.332 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004277/0.1225, allocations: 123.8 kB / 379.1 MB, free: 1.211 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.000469/0.123, allocations: 411.1 kB / 379.5 MB, free: 0.8086 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002297/0.1232, allocations: 115 kB / 379.7 MB, free: 0.6953 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.267/0.3903, allocations: 0.9314 MB / 380.6 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003991/0.3907, allocations: 193.9 kB / 380.8 MB, free: 10.22 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001127/0.3908, allocations: 38.44 kB / 380.8 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.764e-05/0.3909, allocations: 36.16 kB / 380.9 MB, free: 10.21 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002635/0.3912, allocations: 165.2 kB / 381 MB, free: 10.19 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003021/0.3915, allocations: 282.3 kB / 381.3 MB, free: 10.08 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001277/0.3928, allocations: 0.9805 MB / 382.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.3928, allocations: 0.8438 kB / 382.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.375e-06/0.3928, allocations: 1.438 kB / 382.3 MB, free: 9.977 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.392e-05/0.3929, allocations: 0 / 382.3 MB, free: 9.977 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.001614/0.3945, allocations: 1.115 MB / 383.4 MB, free: 9.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.707e-05/0.3945, allocations: 13.64 kB / 383.4 MB, free: 9.18 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002004/0.3948, allocations: 83.91 kB / 383.5 MB, free: 9.137 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000546/0.3953, allocations: 428 kB / 383.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.743e-05/0.3954, allocations: 17.56 kB / 383.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.114e-05/0.3954, allocations: 21.19 kB / 383.9 MB, free: 8.824 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007369/0.3962, allocations: 298.8 kB / 384.2 MB, free: 8.789 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.354e-05/0.3962, allocations: 3.938 kB / 384.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.96e-05/0.3963, allocations: 10.69 kB / 384.2 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.02e-05/0.3963, allocations: 7.516 kB / 384.3 MB, free: 8.785 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005285/0.3968, allocations: 211.6 kB / 384.5 MB, free: 8.781 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.3986, allocations: 0.8855 MB / 385.3 MB, free: 8.445 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000511/0.3991, allocations: 218.4 kB / 385.6 MB, free: 8.422 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003449/0.3995, allocations: 157.9 kB / 385.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.055e-05/0.3995, allocations: 7.234 kB / 385.7 MB, free: 8.414 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006444/0.4002, allocations: 382.8 kB / 386.1 MB, free: 8.242 MB / 318.1 MB Notification: Performance of pre-optimization done (n=24): time 2.145e-06/0.4002, allocations: 1.25 kB / 386.1 MB, free: 8.242 MB / 318.1 MB Notification: Performance of matching and sorting (n=24): time 0.001584/0.4018, allocations: 0.736 MB / 386.8 MB, free: 7.965 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.571e-05/0.4019, allocations: 179.8 kB / 387 MB, free: 7.77 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00158/0.4035, allocations: 0.9973 MB / 388 MB, free: 7.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 5.709e-05/0.4035, allocations: 35.66 kB / 388 MB, free: 7.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001397/0.4037, allocations: 157.8 kB / 388.2 MB, free: 7.102 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.775e-05/0.4038, allocations: 56.89 kB / 388.2 MB, free: 7.066 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003331/0.4041, allocations: 161.8 kB / 388.4 MB, free: 6.984 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.0001035/0.4042, allocations: 341.6 kB / 388.7 MB, free: 6.656 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.4046, allocations: 123.6 kB / 388.9 MB, free: 6.613 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.4049, allocations: 161.2 kB / 389 MB, free: 6.523 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005746/0.4054, allocations: 481.3 kB / 389.5 MB, free: 6.141 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4055, allocations: 0 / 389.5 MB, free: 6.141 MB / 318.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001049/0.4065, allocations: 0.5799 MB / 390.1 MB, free: 5.848 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001021/0.4066, allocations: 134 kB / 390.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.4066, allocations: 1.719 kB / 390.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.511e-05/0.4067, allocations: 3.375 kB / 390.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001106/0.4068, allocations: 19.25 kB / 390.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.078e-05/0.4068, allocations: 3 kB / 390.2 MB, free: 5.711 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003092/0.4071, allocations: 24.58 kB / 390.2 MB, free: 5.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001792/0.4073, allocations: 117.1 kB / 390.4 MB, free: 5.691 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.0009462/0.4083, allocations: 0.5309 MB / 390.9 MB, free: 5.312 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001307/0.4084, allocations: 78.34 kB / 391 MB, free: 5.273 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002982/0.4087, allocations: 137 kB / 391.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.4087, allocations: 1.125 kB / 391.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.264e-06/0.4087, allocations: 0 / 391.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.172e-06/0.4087, allocations: 1.625 kB / 391.1 MB, free: 5.188 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009149/0.4097, allocations: 0.628 MB / 391.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.4097, allocations: 2.938 kB / 391.7 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.431e-05/0.4097, allocations: 15.16 kB / 391.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.909e-06/0.4098, allocations: 0.9062 kB / 391.8 MB, free: 4.785 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.743e-05/0.4098, allocations: 26.8 kB / 391.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.457e-06/0.4098, allocations: 1.438 kB / 391.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.006e-06/0.4098, allocations: 0.6094 kB / 391.8 MB, free: 4.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.4111, allocations: 0.7017 MB / 392.5 MB, free: 4.402 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006452/0.4117, allocations: 0.4926 MB / 393 MB, free: 4.074 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001067/0.4118, allocations: 20.81 kB / 393 MB, free: 4.066 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001809/0.412, allocations: 18.59 kB / 393 MB, free: 4.062 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000182/0.4122, allocations: 50.5 kB / 393.1 MB, free: 4.047 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001539/0.4124, allocations: 118.8 kB / 393.2 MB, free: 4.035 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001169/0.4136, allocations: 0.7286 MB / 393.9 MB, free: 3.676 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4136, allocations: 4 kB / 393.9 MB, free: 3.672 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0004934/0.4141, allocations: 94.19 kB / 394 MB, free: 3.66 MB / 318.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.0002106/0.4143, allocations: 132 kB / 394.1 MB, free: 3.562 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009829/0.4153, allocations: 0.6588 MB / 394.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.665e-06/0.4153, allocations: 0 / 394.8 MB, free: 3.113 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005527/0.4158, allocations: 0.5274 MB / 395.3 MB, free: 2.703 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001005/0.4169, allocations: 203.1 kB / 395.5 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002831/0.4197, allocations: 1.403 MB / 396.9 MB, free: 1.855 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006954/0.4204, allocations: 0.9628 MB / 397.9 MB, free: 1.074 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003862/0.4208, allocations: 96.47 kB / 398 MB, free: 1.012 MB / 318.1 MB Notification: Performance of SimCode: time 1.222e-06/0.4208, allocations: 4 kB / 398 MB, free: 1.008 MB / 318.1 MB Notification: Performance of Templates: time 0.01188/0.4327, allocations: 5.433 MB / 403.4 MB, free: 15.46 MB / 334.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (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) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches