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.001516/0.001516, allocations: 113.7 kB / 18.45 MB, free: 4.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001951/0.001952, allocations: 212.9 kB / 19.41 MB, free: 3.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.376/1.376, allocations: 227.4 MB / 247.6 MB, free: 10.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001068/0.001068, allocations: 68.02 kB / 359.4 MB, free: 12.94 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.2663, allocations: 50.55 MB / 409.9 MB, free: 1.613 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003658/0.27, allocations: 2.103 MB / 412 MB, free: 15.5 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002778/0.2728, allocations: 1.045 MB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001707/0.273, allocations: 7.938 kB / 413.1 MB, free: 14.45 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001845/0.2732, allocations: 35.66 kB / 413.1 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001682/0.2734, allocations: 55.5 kB / 413.2 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005453/0.274, allocations: 123.9 kB / 413.3 MB, free: 14.23 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006044/0.2746, allocations: 415 kB / 413.7 MB, free: 13.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002496/0.2749, allocations: 107 kB / 413.8 MB, free: 13.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001106/0.276, allocations: 0.9631 MB / 414.8 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002847/0.2763, allocations: 199.2 kB / 415 MB, free: 12.55 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 9.982e-05/0.2764, allocations: 32 kB / 415 MB, free: 12.52 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.265e-05/0.2765, allocations: 36 kB / 415 MB, free: 12.48 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001907/0.2767, allocations: 167.3 kB / 415.2 MB, free: 12.32 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002591/0.277, allocations: 286 kB / 415.5 MB, free: 12.04 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009716/0.278, allocations: 0.9771 MB / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.208e-06/0.278, allocations: 0 / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.278, allocations: 0 / 416.4 MB, free: 11.06 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.731e-05/0.278, allocations: 0 / 416.4 MB, free: 11.06 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.001753/0.2798, allocations: 1.116 MB / 417.6 MB, free: 9.871 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.2799, allocations: 16.03 kB / 417.6 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001913/0.2801, allocations: 79.91 kB / 417.7 MB, free: 9.777 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005996/0.2807, allocations: 428.1 kB / 418.1 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.468e-05/0.2808, allocations: 24.3 kB / 418.1 MB, free: 9.293 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.528e-05/0.2808, allocations: 20.38 kB / 418.1 MB, free: 9.273 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007712/0.2816, allocations: 305.5 kB / 418.4 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.42e-05/0.2816, allocations: 4 kB / 418.4 MB, free: 8.965 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.595e-05/0.2817, allocations: 11.98 kB / 418.4 MB, free: 8.953 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.2817, allocations: 4 kB / 418.4 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005392/0.2823, allocations: 211.9 kB / 418.6 MB, free: 8.742 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001708/0.284, allocations: 0.8824 MB / 419.5 MB, free: 7.809 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.2846, allocations: 214.5 kB / 419.7 MB, free: 7.59 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003144/0.2849, allocations: 152.8 kB / 419.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.038e-05/0.285, allocations: 0 / 419.9 MB, free: 7.438 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007377/0.2857, allocations: 405.3 kB / 420.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 2.625e-06/0.2858, allocations: 0 / 420.3 MB, free: 7.008 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001732/0.2875, allocations: 0.7308 MB / 421 MB, free: 6.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.356e-05/0.2876, allocations: 182.1 kB / 421.2 MB, free: 6.031 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001658/0.2893, allocations: 1 MB / 422.2 MB, free: 5.02 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.64e-05/0.2893, allocations: 37.7 kB / 422.2 MB, free: 4.977 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.2895, allocations: 153.8 kB / 422.4 MB, free: 4.82 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.364e-05/0.2896, allocations: 55.36 kB / 422.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002725/0.2899, allocations: 169 kB / 422.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001637/0.2901, allocations: 338.8 kB / 422.9 MB, free: 4.254 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003732/0.2905, allocations: 119.9 kB / 423 MB, free: 4.137 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004084/0.2909, allocations: 172.2 kB / 423.2 MB, free: 3.953 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007353/0.2916, allocations: 473.8 kB / 423.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.2917, allocations: 0 / 423.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001322/0.293, allocations: 0.5819 MB / 424.3 MB, free: 2.812 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001355/0.2931, allocations: 137.6 kB / 424.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.094e-05/0.2932, allocations: 0 / 424.4 MB, free: 2.656 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.797e-05/0.2932, allocations: 3.938 kB / 424.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001062/0.2933, allocations: 15.98 kB / 424.4 MB, free: 2.637 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.157e-05/0.2933, allocations: 8.062 kB / 424.4 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000309/0.2937, allocations: 23.92 kB / 424.4 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001548/0.2938, allocations: 111.9 kB / 424.5 MB, free: 2.496 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.0006783/0.2945, allocations: 0.5492 MB / 425.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001348/0.2947, allocations: 83.06 kB / 425.2 MB, free: 1.832 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002371/0.2949, allocations: 122.4 kB / 425.3 MB, free: 1.711 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.2949, allocations: 4 kB / 425.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.851e-06/0.295, allocations: 0 / 425.3 MB, free: 1.707 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.295e-06/0.295, allocations: 4.078 kB / 425.3 MB, free: 1.703 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008223/0.2958, allocations: 0.618 MB / 425.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.755e-06/0.2958, allocations: 0 / 425.9 MB, free: 1.035 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.416e-05/0.2959, allocations: 15.98 kB / 425.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.427e-06/0.2959, allocations: 0 / 425.9 MB, free: 1.02 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.59e-05/0.296, allocations: 23.98 kB / 426 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.905e-06/0.296, allocations: 0 / 426 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/0.296, allocations: 4 kB / 426 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001389/0.2974, allocations: 0.7168 MB / 426.7 MB, free: 240 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009097/0.2983, allocations: 0.4919 MB / 427.2 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001025/0.2984, allocations: 24.12 kB / 427.2 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002092/0.2987, allocations: 19.98 kB / 427.2 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000164/0.2988, allocations: 47.95 kB / 427.3 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.299, allocations: 111.9 kB / 427.4 MB, free: 15.52 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0009698/0.2999, allocations: 0.7368 MB / 428.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.3, allocations: 0 / 428.1 MB, free: 14.79 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003419/0.3003, allocations: 87.91 kB / 428.2 MB, free: 14.7 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.0001596/0.3005, allocations: 134.8 kB / 428.3 MB, free: 14.56 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008205/0.3013, allocations: 0.6536 MB / 429 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.234e-06/0.3013, allocations: 0 / 429 MB, free: 13.86 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004743/0.3018, allocations: 0.5288 MB / 429.5 MB, free: 13.28 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008/0.3026, allocations: 195.9 kB / 429.7 MB, free: 13.1 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001856/0.3045, allocations: 1.408 MB / 431.1 MB, free: 11.66 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005405/0.305, allocations: 0.9636 MB / 432.1 MB, free: 10.67 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001983/0.3052, allocations: 95.23 kB / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of SimCode: time 2.2e-07/0.3052, allocations: 0 / 432.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of Templates: time 0.2027/0.5079, allocations: 5.467 MB / 437.6 MB, free: 5.078 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