Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001807/0.001807, allocations: 112.5 kB / 17.86 MB, free: 5.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002362/0.002362, allocations: 209.7 kB / 18.79 MB, free: 4.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.369/1.369, allocations: 227.4 MB / 246.9 MB, free: 9.02 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001325/0.001325, allocations: 59.53 kB / 306.9 MB, free: 0.8086 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09898/0.1003, allocations: 50.53 MB / 357.4 MB, free: 14.27 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003309/0.1037, allocations: 2.172 MB / 359.6 MB, free: 12.09 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002105/0.1058, allocations: 1.076 MB / 360.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001267/0.1059, allocations: 4 kB / 360.7 MB, free: 11 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001707/0.1062, allocations: 27.78 kB / 360.7 MB, free: 10.97 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.1063, allocations: 43.64 kB / 360.7 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003505/0.1067, allocations: 103.9 kB / 360.8 MB, free: 10.83 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003714/0.107, allocations: 343.1 kB / 361.2 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002162/0.1073, allocations: 115 kB / 361.3 MB, free: 10.38 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008798/0.1082, allocations: 0.9202 MB / 362.2 MB, free: 9.457 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002138/0.1084, allocations: 175.2 kB / 362.4 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.347e-05/0.1085, allocations: 12 kB / 362.4 MB, free: 9.273 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.178e-05/0.1086, allocations: 12 kB / 362.4 MB, free: 9.262 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001632/0.1087, allocations: 155.4 kB / 362.6 MB, free: 9.109 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002674/0.109, allocations: 266.1 kB / 362.8 MB, free: 8.848 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006287/0.1096, allocations: 0.7993 MB / 363.6 MB, free: 8.047 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.907e-06/0.1096, allocations: 4 kB / 363.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1097, allocations: 0 / 363.6 MB, free: 8.043 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.673e-05/0.1097, allocations: 4 kB / 363.6 MB, free: 8.039 MB / 302.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.001347/0.111, allocations: 1.128 MB / 364.8 MB, free: 6.836 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.511e-05/0.1111, allocations: 8.031 kB / 364.8 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001375/0.1112, allocations: 80 kB / 364.8 MB, free: 6.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004525/0.1117, allocations: 440 kB / 365.3 MB, free: 6.281 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.553e-05/0.1117, allocations: 12.38 kB / 365.3 MB, free: 6.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.152e-05/0.1118, allocations: 20.38 kB / 365.3 MB, free: 6.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006085/0.1124, allocations: 305.5 kB / 365.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.1124, allocations: 0 / 365.6 MB, free: 5.945 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.281e-05/0.1125, allocations: 12 kB / 365.6 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.085e-06/0.1125, allocations: 4 kB / 365.6 MB, free: 5.93 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004374/0.1129, allocations: 211.8 kB / 365.8 MB, free: 5.723 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001302/0.1142, allocations: 0.89 MB / 366.7 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004548/0.1147, allocations: 210.5 kB / 366.9 MB, free: 4.566 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002905/0.115, allocations: 160.8 kB / 367.1 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.687e-05/0.115, allocations: 4 kB / 367.1 MB, free: 4.402 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005558/0.1156, allocations: 393.8 kB / 367.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.783e-06/0.1156, allocations: 0 / 367.5 MB, free: 3.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001336/0.117, allocations: 0.7343 MB / 368.2 MB, free: 3.219 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.472e-05/0.1171, allocations: 174.2 kB / 368.4 MB, free: 3.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001292/0.1184, allocations: 1 MB / 369.4 MB, free: 1.996 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.741e-05/0.1184, allocations: 37.69 kB / 369.4 MB, free: 1.953 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001052/0.1185, allocations: 157.8 kB / 369.6 MB, free: 1.797 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.316e-05/0.1186, allocations: 55.31 kB / 369.6 MB, free: 1.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000215/0.1188, allocations: 169 kB / 369.8 MB, free: 1.57 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001388/0.119, allocations: 342.8 kB / 370.1 MB, free: 1.227 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002684/0.1193, allocations: 124 kB / 370.2 MB, free: 1.105 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000287/0.1196, allocations: 164.2 kB / 370.4 MB, free: 0.9297 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005816/0.1202, allocations: 477.7 kB / 370.9 MB, free: 408 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.1202, allocations: 0 / 370.9 MB, free: 408 kB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.152/0.2722, allocations: 0.575 MB / 371.4 MB, free: 20.56 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.699e-05/0.2723, allocations: 136.4 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.155e-06/0.2723, allocations: 0.8438 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.793e-05/0.2723, allocations: 1.875 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.078e-05/0.2724, allocations: 16.33 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.935e-06/0.2724, allocations: 2.891 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003201/0.2727, allocations: 35.05 kB / 371.6 MB, free: 20.43 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000136/0.2729, allocations: 111.3 kB / 371.7 MB, free: 20.43 MB / 302.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.0006314/0.2735, allocations: 0.5344 MB / 372.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001084/0.2736, allocations: 77.12 kB / 372.3 MB, free: 20.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.2738, allocations: 134.4 kB / 372.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.637e-06/0.2738, allocations: 1.031 kB / 372.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.2739, allocations: 2.344 kB / 372.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.236e-06/0.2739, allocations: 0.5625 kB / 372.5 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006616/0.2745, allocations: 0.6243 MB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-06/0.2745, allocations: 1.219 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.119e-05/0.2746, allocations: 12.55 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.735e-06/0.2746, allocations: 2 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.164e-05/0.2747, allocations: 26.42 kB / 373.1 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.013e-06/0.2747, allocations: 2.281 kB / 373.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.2747, allocations: 0.5625 kB / 373.2 MB, free: 19.75 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001055/0.2757, allocations: 0.705 MB / 373.9 MB, free: 19.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005661/0.2763, allocations: 0.496 MB / 374.4 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.2764, allocations: 23.56 kB / 374.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002124/0.2767, allocations: 24.16 kB / 374.4 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001584/0.2768, allocations: 56.36 kB / 374.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001255/0.277, allocations: 114.2 kB / 374.6 MB, free: 19.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009268/0.2779, allocations: 0.7334 MB / 375.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.072e-06/0.2779, allocations: 0 / 375.3 MB, free: 18.67 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003711/0.2783, allocations: 97.59 kB / 375.4 MB, free: 18.66 MB / 302.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.0001492/0.2784, allocations: 138.4 kB / 375.5 MB, free: 18.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0007768/0.2792, allocations: 0.6573 MB / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.2792, allocations: 0 / 376.2 MB, free: 18.12 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004316/0.2797, allocations: 0.5303 MB / 376.7 MB, free: 17.7 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007887/0.2805, allocations: 179.2 kB / 376.9 MB, free: 17.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00198/0.2825, allocations: 1.634 MB / 378.5 MB, free: 16.66 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005003/0.283, allocations: 0.9625 MB / 379.5 MB, free: 15.88 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002266/0.2832, allocations: 97.22 kB / 379.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of SimCode: time 5.71e-07/0.2832, allocations: 0.6562 kB / 379.6 MB, free: 15.82 MB / 302.1 MB Notification: Performance of Templates: time 0.007973/0.2912, allocations: 5.421 MB / 385 MB, free: 14.83 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches