Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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_4.1.0-beta.om_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_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001581/0.001581, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001595/0.001595, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.636/1.636, allocations: 227.7 MB / 247.7 MB, free: 10.32 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001899/0.001899, allocations: 64.98 kB / 307.9 MB, free: 0.5 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09624/0.09815, allocations: 50.55 MB / 358.4 MB, free: 13.94 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003667/0.1019, allocations: 2.116 MB / 360.5 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002299/0.1042, allocations: 1.049 MB / 361.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.273e-05/0.1043, allocations: 7.938 kB / 361.6 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.1045, allocations: 35.66 kB / 361.6 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001092/0.1046, allocations: 47.53 kB / 361.7 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003539/0.105, allocations: 131.7 kB / 361.8 MB, free: 10.54 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004602/0.1054, allocations: 415.1 kB / 362.2 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002186/0.1057, allocations: 109.4 kB / 362.3 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009283/0.1066, allocations: 0.9358 MB / 363.3 MB, free: 9.086 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003185/0.1069, allocations: 199.2 kB / 363.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.97e-05/0.107, allocations: 35.94 kB / 363.5 MB, free: 8.855 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.826e-05/0.1071, allocations: 36 kB / 363.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001745/0.1073, allocations: 163.4 kB / 363.7 MB, free: 8.66 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002828/0.1076, allocations: 286.1 kB / 364 MB, free: 8.379 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008803/0.1085, allocations: 0.9658 MB / 364.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1085, allocations: 0 / 364.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1085, allocations: 0 / 364.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.314e-06/0.1085, allocations: 0 / 364.9 MB, free: 7.41 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.001381/0.1099, allocations: 1.121 MB / 366.1 MB, free: 6.215 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.1099, allocations: 8.031 kB / 366.1 MB, free: 6.207 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000132/0.1101, allocations: 80 kB / 366.1 MB, free: 6.129 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004842/0.1106, allocations: 428 kB / 366.6 MB, free: 5.672 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.018e-05/0.1106, allocations: 20.38 kB / 366.6 MB, free: 5.652 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.548e-05/0.1107, allocations: 20.38 kB / 366.6 MB, free: 5.633 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006321/0.1113, allocations: 301.5 kB / 366.9 MB, free: 5.332 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.116e-05/0.1114, allocations: 3.938 kB / 366.9 MB, free: 5.328 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.775e-05/0.1114, allocations: 12 kB / 366.9 MB, free: 5.316 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.662e-06/0.1114, allocations: 3.984 kB / 366.9 MB, free: 5.312 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000445/0.1119, allocations: 207.9 kB / 367.1 MB, free: 5.109 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001326/0.1132, allocations: 0.8979 MB / 368 MB, free: 4.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004591/0.1137, allocations: 218.4 kB / 368.2 MB, free: 3.938 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002978/0.114, allocations: 156.8 kB / 368.4 MB, free: 3.781 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.334e-05/0.114, allocations: 4 kB / 368.4 MB, free: 3.777 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006156/0.1146, allocations: 389.8 kB / 368.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.703e-06/0.1147, allocations: 0 / 368.8 MB, free: 3.359 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001426/0.1161, allocations: 0.7407 MB / 369.5 MB, free: 2.59 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001238/0.1162, allocations: 174.2 kB / 369.7 MB, free: 2.383 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001328/0.1176, allocations: 0.9961 MB / 370.7 MB, free: 1.371 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.022e-05/0.1176, allocations: 41.7 kB / 370.7 MB, free: 1.324 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001299/0.1178, allocations: 149.8 kB / 370.9 MB, free: 1.176 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.825e-05/0.1178, allocations: 55.27 kB / 370.9 MB, free: 1.121 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002457/0.1181, allocations: 169 kB / 371.1 MB, free: 0.9492 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001624/0.1183, allocations: 338.8 kB / 371.4 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002889/0.1186, allocations: 123.9 kB / 371.5 MB, free: 500 kB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003058/0.1189, allocations: 164.2 kB / 371.7 MB, free: 320 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1437/0.2626, allocations: 465.5 kB / 372.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.764e-06/0.2626, allocations: 1.047 kB / 372.1 MB, free: 19.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001035/0.2637, allocations: 0.5868 MB / 372.7 MB, free: 19.72 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.466e-05/0.2637, allocations: 134.1 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.2638, allocations: 2.047 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.001e-05/0.2638, allocations: 4.438 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.148e-05/0.2639, allocations: 15.22 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.915e-06/0.2639, allocations: 2.344 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002353/0.2641, allocations: 19.28 kB / 372.9 MB, free: 19.6 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001285/0.2643, allocations: 111.9 kB / 373 MB, free: 19.59 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.0005691/0.2649, allocations: 0.5391 MB / 373.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001012/0.265, allocations: 77.62 kB / 373.6 MB, free: 19.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001888/0.2652, allocations: 127.1 kB / 373.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.2652, allocations: 6.906 kB / 373.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.19e-06/0.2652, allocations: 0.625 kB / 373.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.117e-06/0.2652, allocations: 6.344 kB / 373.8 MB, free: 19.25 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006702/0.2659, allocations: 0.6263 MB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.2659, allocations: 0 / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.847e-05/0.2659, allocations: 12.25 kB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.276e-06/0.2659, allocations: 1.078 kB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.729e-05/0.266, allocations: 27.17 kB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.364e-06/0.266, allocations: 0.5156 kB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.266, allocations: 3.781 kB / 374.4 MB, free: 18.98 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001097/0.2671, allocations: 0.7031 MB / 375.1 MB, free: 18.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005974/0.2677, allocations: 0.494 MB / 375.6 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000108/0.2678, allocations: 20 kB / 375.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000181/0.268, allocations: 17.11 kB / 375.7 MB, free: 18.38 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001648/0.2682, allocations: 50.34 kB / 375.7 MB, free: 18.36 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001166/0.2683, allocations: 119.8 kB / 375.8 MB, free: 18.35 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008784/0.2692, allocations: 0.7283 MB / 376.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.2692, allocations: 3.219 kB / 376.6 MB, free: 17.98 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004014/0.2696, allocations: 89.36 kB / 376.7 MB, free: 17.98 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.0001769/0.2698, allocations: 138.8 kB / 376.8 MB, free: 17.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008316/0.2706, allocations: 0.6605 MB / 377.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.2707, allocations: 0 / 377.4 MB, free: 17.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004579/0.2711, allocations: 0.5267 MB / 378 MB, free: 17.02 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008024/0.2719, allocations: 205.3 kB / 378.2 MB, free: 16.97 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00189/0.2738, allocations: 1.421 MB / 379.6 MB, free: 16.18 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004858/0.2743, allocations: 0.9653 MB / 380.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002074/0.2745, allocations: 93.38 kB / 380.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of SimCode: time 4.9e-07/0.2746, allocations: 0 / 380.7 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Templates: time 0.008185/0.2827, allocations: 5.441 MB / 386.1 MB, free: 14.29 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches