Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00189/0.00189, allocations: 191.5 kB / 17.43 MB, free: 4.398 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.567/1.567, allocations: 229.5 MB / 247.7 MB, free: 6.316 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008965/0.0008964, allocations: 99.7 kB / 299.9 MB, free: 5.344 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002569/0.0002569, allocations: 8 kB / 360.6 MB, free: 8.484 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2551, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002007/0.2571, allocations: 1.752 MB / 413.8 MB, free: 24.15 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002375/0.2595, allocations: 1.497 MB / 415.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001378/0.2597, allocations: 4 kB / 415.3 MB, free: 22.54 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002113/0.2599, allocations: 28.22 kB / 415.3 MB, free: 22.51 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001459/0.2601, allocations: 49.41 kB / 415.4 MB, free: 22.46 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000456/0.2606, allocations: 108.6 kB / 415.5 MB, free: 22.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000383/0.261, allocations: 339.1 kB / 415.8 MB, free: 22.02 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003034/0.2613, allocations: 103.9 kB / 415.9 MB, free: 21.92 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009427/0.2622, allocations: 0.8732 MB / 416.8 MB, free: 21.04 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002537/0.2625, allocations: 159.3 kB / 416.9 MB, free: 20.89 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 8.371e-05/0.2626, allocations: 12 kB / 417 MB, free: 20.88 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.166e-05/0.2627, allocations: 8 kB / 417 MB, free: 20.87 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001845/0.2629, allocations: 151.3 kB / 417.1 MB, free: 20.72 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002765/0.2632, allocations: 283.8 kB / 417.4 MB, free: 20.43 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008024/0.264, allocations: 0.9162 MB / 418.3 MB, free: 19.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.905e-06/0.264, allocations: 3.938 kB / 418.3 MB, free: 19.51 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.018e-06/0.264, allocations: 3.938 kB / 418.3 MB, free: 19.51 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.393e-05/0.264, allocations: 0 / 418.3 MB, free: 19.51 MB / 298.7 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.001466/0.2655, allocations: 0.967 MB / 419.3 MB, free: 18.46 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.31e-05/0.2656, allocations: 12.03 kB / 419.3 MB, free: 18.45 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002066/0.2658, allocations: 83.94 kB / 419.4 MB, free: 18.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005629/0.2664, allocations: 428 kB / 419.8 MB, free: 17.91 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.674e-05/0.2664, allocations: 12.38 kB / 419.8 MB, free: 17.9 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.941e-05/0.2665, allocations: 20.38 kB / 419.8 MB, free: 17.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007519/0.2673, allocations: 301.8 kB / 420.1 MB, free: 17.58 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.419e-05/0.2673, allocations: 3.984 kB / 420.1 MB, free: 17.58 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.031e-05/0.2673, allocations: 11.98 kB / 420.1 MB, free: 17.57 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.586e-06/0.2674, allocations: 8 kB / 420.1 MB, free: 17.56 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000546/0.2679, allocations: 203.9 kB / 420.3 MB, free: 17.36 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001659/0.2696, allocations: 0.8938 MB / 421.2 MB, free: 16.41 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006415/0.2702, allocations: 218.4 kB / 421.4 MB, free: 16.19 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003965/0.2707, allocations: 160.8 kB / 421.6 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.912e-05/0.2707, allocations: 0 / 421.6 MB, free: 16.03 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007816/0.2715, allocations: 389.8 kB / 422 MB, free: 15.61 MB / 298.7 MB Notification: Performance of pre-optimization done (n=24): time 3.276e-06/0.2715, allocations: 0 / 422 MB, free: 15.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=24): time 0.001825/0.2734, allocations: 0.7358 MB / 422.7 MB, free: 14.85 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/0.2735, allocations: 174.2 kB / 422.9 MB, free: 14.64 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002147/0.2756, allocations: 0.9961 MB / 423.9 MB, free: 13.63 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 6.343e-05/0.2757, allocations: 33.7 kB / 423.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000136/0.2758, allocations: 153.8 kB / 424.1 MB, free: 13.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.276, allocations: 63.28 kB / 424.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.658e-05/0.276, allocations: 4 kB / 424.1 MB, free: 13.38 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.362e-05/0.2761, allocations: 342.8 kB / 424.5 MB, free: 13.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003546/0.2765, allocations: 123.9 kB / 424.6 MB, free: 12.91 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003641/0.2769, allocations: 156.2 kB / 424.7 MB, free: 12.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007077/0.2776, allocations: 485.7 kB / 425.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.2776, allocations: 0 / 425.2 MB, free: 12.2 MB / 298.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001147/0.2788, allocations: 0.5703 MB / 425.8 MB, free: 11.6 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001075/0.2789, allocations: 134.8 kB / 425.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.473e-05/0.2789, allocations: 0 / 425.9 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.196e-05/0.2789, allocations: 4.125 kB / 425.9 MB, free: 11.44 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001214/0.2791, allocations: 23.98 kB / 425.9 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.2791, allocations: 3.938 kB / 425.9 MB, free: 11.41 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004477/0.2795, allocations: 39.81 kB / 426 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001464/0.2797, allocations: 115.9 kB / 426.1 MB, free: 11.26 MB / 298.7 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,a.y,b.y,Adder.AND.G1.auxiliary_n,Adder.XOR.G1.auxiliary_n,$whenCondition1,$whenCondition2,$PRE.Adder.XOR.G1.auxiliary_n,$PRE.Adder.XOR.G2.x,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,$whenCondition3,$whenCondition4,$PRE.Adder.AND.G1.auxiliary_n,$PRE.Adder.AND.G2.x,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) * 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.0007673/0.2805, allocations: 0.5298 MB / 426.6 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001395/0.2806, allocations: 71.16 kB / 426.7 MB, free: 10.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003343/0.281, allocations: 134.4 kB / 426.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.281, allocations: 4.031 kB / 426.8 MB, free: 10.49 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.663e-06/0.281, allocations: 7.938 kB / 426.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.648e-06/0.281, allocations: 0 / 426.8 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009869/0.282, allocations: 0.6296 MB / 427.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.605e-06/0.282, allocations: 0 / 427.5 MB, free: 9.801 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.285e-05/0.2821, allocations: 15.98 kB / 427.5 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.03e-06/0.2821, allocations: 0 / 427.5 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/0.2822, allocations: 27.98 kB / 427.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.2822, allocations: 0 / 427.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.2822, allocations: 0 / 427.5 MB, free: 9.758 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001275/0.2835, allocations: 0.7041 MB / 428.2 MB, free: 9.012 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007401/0.2843, allocations: 0.4957 MB / 428.7 MB, free: 8.496 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001553/0.2844, allocations: 20 kB / 428.7 MB, free: 8.477 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003203/0.2848, allocations: 27.98 kB / 428.8 MB, free: 8.449 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002038/0.285, allocations: 47.94 kB / 428.8 MB, free: 8.402 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001358/0.2851, allocations: 119.9 kB / 428.9 MB, free: 8.285 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001198/0.2863, allocations: 0.7211 MB / 429.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2863, allocations: 0 / 429.6 MB, free: 7.566 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0005132/0.2869, allocations: 95.91 kB / 429.7 MB, free: 7.473 MB / 298.7 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.0001871/0.2871, allocations: 134.7 kB / 429.9 MB, free: 7.328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009858/0.2881, allocations: 0.6614 MB / 430.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.236e-06/0.2881, allocations: 0 / 430.5 MB, free: 6.617 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005826/0.2887, allocations: 0.5248 MB / 431.1 MB, free: 6.043 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00103/0.2897, allocations: 181.8 kB / 431.2 MB, free: 5.871 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002612/0.2923, allocations: 1.556 MB / 432.8 MB, free: 4.285 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006643/0.293, allocations: 0.9678 MB / 433.8 MB, free: 3.293 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004697/0.2935, allocations: 165.1 kB / 433.9 MB, free: 3.133 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002013/0.2937, allocations: 79.28 kB / 434 MB, free: 3.055 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2937, allocations: 0 / 434 MB, free: 3.055 MB / 298.7 MB Notification: Performance of Templates: time 0.01274/0.3065, allocations: 6.845 MB / 440.8 MB, free: 12.21 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/HalfAdder/HalfAdder.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches