Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4.0.0_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.0.0_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.0008871/0.0008871, allocations: 96.81 kB / 17.31 MB, free: 5.941 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.0009651/0.0009651, allocations: 182.1 kB / 18.21 MB, free: 5.418 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.262/1.262, allocations: 223.3 MB / 242.3 MB, free: 0 / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002266/0.0002266, allocations: 11.94 kB / 302.1 MB, free: 6.09 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07351/0.07375, allocations: 50.42 MB / 352.5 MB, free: 3.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002058/0.07585, allocations: 1.802 MB / 354.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.07769, allocations: 1.025 MB / 355.3 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.868e-05/0.07777, allocations: 11.94 kB / 355.3 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001295/0.07791, allocations: 27.72 kB / 355.4 MB, free: 0.7773 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001026/0.07802, allocations: 39.7 kB / 355.4 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003031/0.07833, allocations: 111.8 kB / 355.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003471/0.07868, allocations: 347.1 kB / 355.8 MB, free: 296 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001902/0.07888, allocations: 91.12 kB / 355.9 MB, free: 200 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008501/0.07974, allocations: 0.9162 MB / 356.9 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001881/0.07994, allocations: 167.2 kB / 357 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.324e-05/0.08, allocations: 8 kB / 357 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.613e-05/0.08006, allocations: 8 kB / 357 MB, free: 15.1 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001403/0.0802, allocations: 143.4 kB / 357.2 MB, free: 14.96 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002249/0.08043, allocations: 283.8 kB / 357.5 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005938/0.08103, allocations: 0.7912 MB / 358.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.08105, allocations: 4 kB / 358.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.08105, allocations: 0 / 358.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.931e-06/0.08106, allocations: 0 / 358.2 MB, free: 13.88 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.00095/0.08202, allocations: 0.9631 MB / 359.2 MB, free: 12.84 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.068e-05/0.08206, allocations: 8.031 kB / 359.2 MB, free: 12.83 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000113/0.08218, allocations: 80 kB / 359.3 MB, free: 12.75 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004074/0.08259, allocations: 435.9 kB / 359.7 MB, free: 12.29 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.378e-05/0.08263, allocations: 20.38 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.882e-05/0.0827, allocations: 20.38 kB / 359.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006093/0.08331, allocations: 313.6 kB / 360.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.037e-06/0.08334, allocations: 0 / 360.1 MB, free: 11.93 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/0.08339, allocations: 11.98 kB / 360.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.032e-06/0.0834, allocations: 4 kB / 360.1 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004455/0.08385, allocations: 207.9 kB / 360.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001156/0.08502, allocations: 0.8785 MB / 361.2 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004534/0.08548, allocations: 218.5 kB / 361.4 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002898/0.08578, allocations: 152.8 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.071e-05/0.08581, allocations: 4 kB / 361.5 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005306/0.08635, allocations: 386 kB / 361.9 MB, free: 9.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=24): time 1.643e-06/0.08636, allocations: 4 kB / 361.9 MB, free: 9.988 MB / 302.1 MB Notification: Performance of matching and sorting (n=24): time 0.001346/0.08771, allocations: 0.7412 MB / 362.7 MB, free: 9.215 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.982e-05/0.08781, allocations: 170.2 kB / 362.8 MB, free: 9.012 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001241/0.08906, allocations: 1 MB / 363.8 MB, free: 8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.888e-05/0.08911, allocations: 33.7 kB / 363.9 MB, free: 7.961 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001036/0.08922, allocations: 157.8 kB / 364 MB, free: 7.805 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.862e-05/0.0893, allocations: 51.41 kB / 364.1 MB, free: 7.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.51e-05/0.08938, allocations: 41.78 kB / 364.1 MB, free: 7.707 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001227/0.08951, allocations: 350.7 kB / 364.4 MB, free: 7.355 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002717/0.08979, allocations: 127.9 kB / 364.6 MB, free: 7.23 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002925/0.09009, allocations: 164.2 kB / 364.7 MB, free: 7.055 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005879/0.09069, allocations: 481.7 kB / 365.2 MB, free: 6.52 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.484e-06/0.0907, allocations: 4 kB / 365.2 MB, free: 6.516 MB / 302.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.000955/0.09166, allocations: 0.5742 MB / 365.8 MB, free: 5.91 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.094e-05/0.09176, allocations: 142.7 kB / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.308e-06/0.09177, allocations: 0 / 365.9 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.088e-05/0.09179, allocations: 4 kB / 365.9 MB, free: 5.742 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.258e-05/0.09187, allocations: 11.98 kB / 365.9 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.482e-06/0.09188, allocations: 4 kB / 365.9 MB, free: 5.727 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002759/0.09216, allocations: 31.88 kB / 366 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001102/0.09228, allocations: 119.9 kB / 366.1 MB, free: 5.578 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.0005596/0.09285, allocations: 0.5298 MB / 366.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.156e-05/0.09295, allocations: 79.06 kB / 366.7 MB, free: 4.938 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001978/0.09316, allocations: 138.4 kB / 366.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.753e-06/0.09317, allocations: 0 / 366.8 MB, free: 4.797 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.055e-06/0.09318, allocations: 4 kB / 366.8 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.09318, allocations: 0 / 366.8 MB, free: 4.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006876/0.09388, allocations: 0.6258 MB / 367.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.342e-06/0.09389, allocations: 0 / 367.5 MB, free: 4.117 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.473e-05/0.09394, allocations: 16.11 kB / 367.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.763e-06/0.09394, allocations: 0 / 367.5 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.871e-05/0.094, allocations: 31.98 kB / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.786e-06/0.09401, allocations: 0 / 367.5 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.72e-07/0.09401, allocations: 3.938 kB / 367.5 MB, free: 4.066 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00108/0.0951, allocations: 0.7001 MB / 368.2 MB, free: 3.324 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006189/0.09573, allocations: 0.4957 MB / 368.7 MB, free: 2.809 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.679e-05/0.09583, allocations: 20 kB / 368.7 MB, free: 2.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002268/0.09607, allocations: 31.89 kB / 368.7 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001407/0.09622, allocations: 51.94 kB / 368.8 MB, free: 2.707 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001114/0.09634, allocations: 115.9 kB / 368.9 MB, free: 2.594 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0009174/0.09726, allocations: 0.7289 MB / 369.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.09727, allocations: 0 / 369.6 MB, free: 1.867 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003512/0.09762, allocations: 95.94 kB / 369.7 MB, free: 1.773 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.00015/0.09778, allocations: 130.7 kB / 369.9 MB, free: 1.633 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0008916/0.09868, allocations: 0.6576 MB / 370.5 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.426e-06/0.09869, allocations: 0 / 370.5 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000557/0.09926, allocations: 0.5327 MB / 371.1 MB, free: 352 kB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008298/0.1001, allocations: 176.7 kB / 371.2 MB, free: 180 kB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1282/0.2283, allocations: 1.625 MB / 372.9 MB, free: 24.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000526/0.2289, allocations: 0.9687 MB / 373.8 MB, free: 23.5 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000247/0.2291, allocations: 89.72 kB / 373.9 MB, free: 23.45 MB / 302.1 MB Notification: Performance of SimCode: time 1.062e-06/0.2291, allocations: 0 / 373.9 MB, free: 23.45 MB / 302.1 MB Notification: Performance of Templates: time 0.007727/0.2369, allocations: 5.398 MB / 379.3 MB, free: 22.98 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.sim & ./Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_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_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches