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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001884/0.001884, allocations: 121.6 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002164/0.002164, allocations: 203.9 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.434/1.434, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001712/0.001712, allocations: 59.91 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.266, allocations: 50.54 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003343/0.2694, allocations: 2.12 MB / 410.9 MB, free: 15.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002314/0.2717, allocations: 1.045 MB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001023/0.2718, allocations: 4 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002745/0.2721, allocations: 31.66 kB / 412 MB, free: 14.33 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001132/0.2722, allocations: 59.5 kB / 412 MB, free: 14.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004004/0.2727, allocations: 127.8 kB / 412.1 MB, free: 14.14 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005741/0.2732, allocations: 411 kB / 412.5 MB, free: 13.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002376/0.2735, allocations: 111.1 kB / 412.6 MB, free: 13.62 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001026/0.2745, allocations: 0.9435 MB / 413.6 MB, free: 12.68 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002534/0.2748, allocations: 191.2 kB / 413.8 MB, free: 12.49 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.562e-05/0.2749, allocations: 32 kB / 413.8 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.848e-05/0.2749, allocations: 36 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002107/0.2752, allocations: 163.4 kB / 414 MB, free: 12.26 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002682/0.2754, allocations: 294 kB / 414.3 MB, free: 11.97 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009922/0.2764, allocations: 0.9679 MB / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.953e-06/0.2765, allocations: 0 / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2765, allocations: 3.938 kB / 415.3 MB, free: 11 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.895e-06/0.2765, allocations: 4 kB / 415.3 MB, free: 11 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.001398/0.2779, allocations: 1.142 MB / 416.4 MB, free: 9.777 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.686e-05/0.2779, allocations: 12.03 kB / 416.4 MB, free: 9.766 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.435e-05/0.278, allocations: 54.73 kB / 416.5 MB, free: 9.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001391/0.2782, allocations: 84.42 kB / 416.6 MB, free: 9.621 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005384/0.2787, allocations: 432.8 kB / 417 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.044e-05/0.2788, allocations: 24.3 kB / 417 MB, free: 9.133 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.499e-05/0.2789, allocations: 20.38 kB / 417 MB, free: 9.113 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006654/0.2795, allocations: 309.3 kB / 417.3 MB, free: 8.805 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.059e-05/0.2796, allocations: 4 kB / 417.3 MB, free: 8.801 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.998e-05/0.2796, allocations: 8 kB / 417.3 MB, free: 8.793 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.304e-06/0.2796, allocations: 4 kB / 417.3 MB, free: 8.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004582/0.2801, allocations: 199.9 kB / 417.5 MB, free: 8.594 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00132/0.2814, allocations: 0.8903 MB / 418.4 MB, free: 7.652 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000487/0.2819, allocations: 230.4 kB / 418.7 MB, free: 7.418 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002861/0.2822, allocations: 156.8 kB / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.912e-05/0.2823, allocations: 0 / 418.8 MB, free: 7.262 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006346/0.2829, allocations: 382.1 kB / 419.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.623e-06/0.2829, allocations: 0 / 419.2 MB, free: 6.852 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001419/0.2843, allocations: 0.7447 MB / 419.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001303/0.2845, allocations: 182.2 kB / 420.1 MB, free: 5.863 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001341/0.2858, allocations: 1 MB / 421.1 MB, free: 4.852 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.33e-05/0.2859, allocations: 37.7 kB / 421.1 MB, free: 4.809 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001581/0.2861, allocations: 157.9 kB / 421.3 MB, free: 4.648 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.99e-05/0.2861, allocations: 59.53 kB / 421.3 MB, free: 4.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002455/0.2864, allocations: 165.3 kB / 421.5 MB, free: 4.422 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001944/0.2866, allocations: 338.8 kB / 421.8 MB, free: 4.082 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000274/0.2869, allocations: 123.9 kB / 422 MB, free: 3.961 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002927/0.2872, allocations: 164.2 kB / 422.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007753/0.288, allocations: 473.8 kB / 422.6 MB, free: 3.258 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.288, allocations: 4 kB / 422.6 MB, free: 3.254 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0009811/0.289, allocations: 0.582 MB / 423.2 MB, free: 2.641 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001174/0.2891, allocations: 138.8 kB / 423.3 MB, free: 2.48 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.375e-06/0.2891, allocations: 4 kB / 423.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.866e-05/0.2891, allocations: 0 / 423.3 MB, free: 2.477 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.11e-05/0.2892, allocations: 19.92 kB / 423.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.021e-06/0.2892, allocations: 0 / 423.3 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002081/0.2894, allocations: 27.88 kB / 423.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001657/0.2896, allocations: 115.9 kB / 423.5 MB, free: 2.316 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.0006324/0.2903, allocations: 0.5337 MB / 424 MB, free: 1.75 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001156/0.2904, allocations: 79.53 kB / 424.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002056/0.2906, allocations: 134.4 kB / 424.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.705e-06/0.2906, allocations: 0 / 424.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.2906, allocations: 0 / 424.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.377e-06/0.2906, allocations: 96 / 424.2 MB, free: 1.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007589/0.2914, allocations: 0.6257 MB / 424.8 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.457e-06/0.2914, allocations: 4.125 kB / 424.8 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.6e-05/0.2915, allocations: 19.98 kB / 424.9 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.719e-06/0.2915, allocations: 3.984 kB / 424.9 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.103e-05/0.2915, allocations: 27.98 kB / 424.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.246e-06/0.2915, allocations: 0 / 424.9 MB, free: 0.8086 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.2915, allocations: 3.938 kB / 424.9 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001126/0.2927, allocations: 0.7022 MB / 425.6 MB, free: 60 kB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000686/0.2934, allocations: 0.5039 MB / 426.1 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.571e-05/0.2935, allocations: 20 kB / 426.1 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000167/0.2936, allocations: 19.98 kB / 426.1 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001575/0.2938, allocations: 51.89 kB / 426.2 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001292/0.2939, allocations: 115.9 kB / 426.3 MB, free: 15.33 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001009/0.295, allocations: 0.7289 MB / 427 MB, free: 14.61 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.295, allocations: 0 / 427 MB, free: 14.61 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000373/0.2953, allocations: 88 kB / 427.1 MB, free: 14.52 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.001548/0.2969, allocations: 1.285 MB / 428.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009732/0.2979, allocations: 0.6459 MB / 429.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.2979, allocations: 4.125 kB / 429.1 MB, free: 12.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006116/0.2985, allocations: 0.5288 MB / 429.6 MB, free: 11.91 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007984/0.2993, allocations: 193.8 kB / 429.8 MB, free: 11.73 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00669/0.306, allocations: 4.539 MB / 434.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007638/0.3068, allocations: 0.9675 MB / 435.3 MB, free: 6.059 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003575/0.3072, allocations: 169.5 kB / 435.4 MB, free: 5.895 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002361/0.3074, allocations: 131.3 kB / 435.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of SimCode: time 7.72e-07/0.3074, allocations: 0 / 435.6 MB, free: 5.766 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03602/0.3435, allocations: 10.25 MB / 445.8 MB, free: 11.59 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.213/8.556, allocations: 3.938 kB / 445.8 MB, free: 11.59 MB / 366.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_trunk_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv","/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_trunk_Modelica.Electrical.Digital.Examples.HalfAdder.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches