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.001403/0.001403, allocations: 111.7 kB / 18.45 MB, free: 4.641 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001631/0.001631, allocations: 217.9 kB / 19.4 MB, free: 3.691 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.354/1.354, allocations: 227.4 MB / 247.6 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001165/0.001165, allocations: 64.08 kB / 359.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2541/0.2553, allocations: 50.54 MB / 409.9 MB, free: 1.637 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.00335/0.2587, allocations: 2.107 MB / 412 MB, free: 15.52 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002067/0.2608, allocations: 1.045 MB / 413.1 MB, free: 14.47 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.615e-05/0.2609, allocations: 7.938 kB / 413.1 MB, free: 14.46 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001765/0.2611, allocations: 31.66 kB / 413.1 MB, free: 14.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001174/0.2612, allocations: 55.56 kB / 413.2 MB, free: 14.38 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004294/0.2617, allocations: 123.8 kB / 413.3 MB, free: 14.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004972/0.2622, allocations: 411 kB / 413.7 MB, free: 13.85 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002337/0.2624, allocations: 119 kB / 413.8 MB, free: 13.73 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008913/0.2633, allocations: 0.9631 MB / 414.8 MB, free: 12.76 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002374/0.2636, allocations: 191.2 kB / 415 MB, free: 12.57 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.547e-05/0.2637, allocations: 32 kB / 415 MB, free: 12.54 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.779e-05/0.2637, allocations: 36 kB / 415 MB, free: 12.51 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001574/0.2639, allocations: 175.3 kB / 415.2 MB, free: 12.34 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002453/0.2642, allocations: 278.1 kB / 415.5 MB, free: 12.06 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007385/0.2649, allocations: 0.9732 MB / 416.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.937e-06/0.2649, allocations: 4 kB / 416.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2649, allocations: 0 / 416.4 MB, free: 11.09 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.414e-06/0.2649, allocations: 4 kB / 416.4 MB, free: 11.08 MB / 334.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.001253/0.2662, allocations: 1.116 MB / 417.6 MB, free: 9.891 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.637e-05/0.2662, allocations: 8.031 kB / 417.6 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.2664, allocations: 83.91 kB / 417.7 MB, free: 9.801 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004461/0.2668, allocations: 428.1 kB / 418.1 MB, free: 9.34 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.891e-05/0.2669, allocations: 20.36 kB / 418.1 MB, free: 9.32 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.361e-05/0.2669, allocations: 20.38 kB / 418.1 MB, free: 9.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006103/0.2675, allocations: 309.5 kB / 418.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.025e-06/0.2676, allocations: 0 / 418.4 MB, free: 8.992 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.601e-05/0.2676, allocations: 16 kB / 418.4 MB, free: 8.977 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.282e-06/0.2676, allocations: 4 kB / 418.4 MB, free: 8.973 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004356/0.2681, allocations: 211.8 kB / 418.6 MB, free: 8.766 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001193/0.2693, allocations: 0.8862 MB / 419.5 MB, free: 7.828 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004355/0.2697, allocations: 214.5 kB / 419.7 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002681/0.27, allocations: 160.8 kB / 419.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.028e-05/0.27, allocations: 0 / 419.9 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005632/0.2706, allocations: 393.9 kB / 420.3 MB, free: 7.027 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.813e-06/0.2706, allocations: 7.938 kB / 420.3 MB, free: 7.02 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001262/0.2719, allocations: 0.7287 MB / 421 MB, free: 6.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.922e-05/0.272, allocations: 178.1 kB / 421.2 MB, free: 6.051 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001197/0.2732, allocations: 1 MB / 422.2 MB, free: 5.039 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.571e-05/0.2733, allocations: 37.7 kB / 422.2 MB, free: 4.996 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001076/0.2734, allocations: 157.8 kB / 422.4 MB, free: 4.836 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.827e-05/0.2734, allocations: 55.34 kB / 422.4 MB, free: 4.781 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001988/0.2736, allocations: 165 kB / 422.6 MB, free: 4.613 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001167/0.2738, allocations: 342.8 kB / 422.9 MB, free: 4.27 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002578/0.274, allocations: 116 kB / 423 MB, free: 4.156 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002727/0.2743, allocations: 180.2 kB / 423.2 MB, free: 3.965 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005592/0.2749, allocations: 469.8 kB / 423.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.845e-06/0.2749, allocations: 0 / 423.7 MB, free: 3.441 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008826/0.2758, allocations: 0.578 MB / 424.3 MB, free: 2.832 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.2759, allocations: 138.8 kB / 424.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.2759, allocations: 0 / 424.4 MB, free: 2.672 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.482e-05/0.2759, allocations: 4.062 kB / 424.4 MB, free: 2.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000103/0.276, allocations: 19.92 kB / 424.4 MB, free: 2.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.233e-05/0.2761, allocations: 4 kB / 424.4 MB, free: 2.645 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002076/0.2763, allocations: 23.92 kB / 424.4 MB, free: 2.621 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001149/0.2764, allocations: 111.9 kB / 424.6 MB, free: 2.512 MB / 334.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.0005517/0.277, allocations: 0.5375 MB / 425.1 MB, free: 1.941 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.368e-05/0.2771, allocations: 87.05 kB / 425.2 MB, free: 1.855 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001795/0.2772, allocations: 126.4 kB / 425.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.907e-06/0.2773, allocations: 4 kB / 425.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.2773, allocations: 0 / 425.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.116e-06/0.2773, allocations: 0 / 425.3 MB, free: 1.727 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006412/0.2779, allocations: 0.6219 MB / 425.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.2779, allocations: 48 / 425.9 MB, free: 1.055 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.454e-05/0.278, allocations: 15.97 kB / 425.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.484e-06/0.278, allocations: 0 / 425.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.524e-05/0.278, allocations: 31.98 kB / 426 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.703e-06/0.278, allocations: 96 / 426 MB, free: 1.008 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.312e-06/0.2781, allocations: 3.938 kB / 426 MB, free: 1.004 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009999/0.2791, allocations: 0.7056 MB / 426.7 MB, free: 260 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005945/0.2797, allocations: 499.9 kB / 427.2 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001005/0.2798, allocations: 28.06 kB / 427.2 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001731/0.2799, allocations: 19.98 kB / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001756/0.2801, allocations: 51.95 kB / 427.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001104/0.2803, allocations: 111.9 kB / 427.4 MB, free: 15.54 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0008812/0.2811, allocations: 0.729 MB / 428.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2811, allocations: 0 / 428.1 MB, free: 14.81 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003331/0.2815, allocations: 87.91 kB / 428.2 MB, free: 14.73 MB / 350.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.000177/0.2817, allocations: 134.7 kB / 428.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008854/0.2826, allocations: 0.6575 MB / 429 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.893e-06/0.2826, allocations: 0 / 429 MB, free: 13.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008147/0.2834, allocations: 0.5288 MB / 429.5 MB, free: 13.3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001064/0.2845, allocations: 198.3 kB / 429.7 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002877/0.2874, allocations: 1.404 MB / 431.1 MB, free: 11.69 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007438/0.2881, allocations: 0.9675 MB / 432.1 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002366/0.2884, allocations: 99.22 kB / 432.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 6.61e-07/0.2884, allocations: 0 / 432.2 MB, free: 10.6 MB / 350.1 MB Notification: Performance of Templates: time 0.008287/0.2967, allocations: 5.429 MB / 437.6 MB, free: 5.145 MB / 350.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