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: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001477/0.001477, allocations: 109 kB / 17.05 MB, free: 6.055 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.001627/0.001627, allocations: 195.9 kB / 17.99 MB, free: 5.156 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.361/1.361, allocations: 222.9 MB / 241.7 MB, free: 15.08 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001048/0.001048, allocations: 51.92 kB / 350.8 MB, free: 3.727 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.274/0.275, allocations: 49.43 MB / 400.2 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002863/0.2779, allocations: 2.109 MB / 402.3 MB, free: 6.684 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.00194/0.2799, allocations: 1.01 MB / 403.3 MB, free: 5.668 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.556e-05/0.28, allocations: 4 kB / 403.3 MB, free: 5.664 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001553/0.2802, allocations: 39.59 kB / 403.4 MB, free: 5.625 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001149/0.2803, allocations: 55.56 kB / 403.4 MB, free: 5.57 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003739/0.2807, allocations: 119.8 kB / 403.6 MB, free: 5.453 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004181/0.2811, allocations: 415 kB / 404 MB, free: 5.047 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002047/0.2813, allocations: 111.1 kB / 404.1 MB, free: 4.934 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000814/0.2821, allocations: 0.9668 MB / 405 MB, free: 3.965 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002164/0.2824, allocations: 191.2 kB / 405.2 MB, free: 3.777 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 7.19e-05/0.2824, allocations: 43.98 kB / 405.3 MB, free: 3.734 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.916e-05/0.2825, allocations: 36 kB / 405.3 MB, free: 3.699 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001653/0.2827, allocations: 159.4 kB / 405.5 MB, free: 3.543 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002429/0.2829, allocations: 282.1 kB / 405.7 MB, free: 3.266 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008288/0.2838, allocations: 0.9795 MB / 406.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.108e-06/0.2838, allocations: 0 / 406.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.833e-06/0.2838, allocations: 0 / 406.7 MB, free: 2.285 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.355e-06/0.2838, allocations: 4 kB / 406.7 MB, free: 2.281 MB / 318.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.0012/0.285, allocations: 1.149 MB / 407.9 MB, free: 1.055 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.934e-05/0.2851, allocations: 8.031 kB / 407.9 MB, free: 1.047 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.455e-05/0.2851, allocations: 58.73 kB / 407.9 MB, free: 0.9805 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.2853, allocations: 84.42 kB / 408 MB, free: 0.8984 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005023/0.2858, allocations: 440.8 kB / 408.4 MB, free: 436 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.265e-05/0.2858, allocations: 12.38 kB / 408.5 MB, free: 424 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.587e-05/0.2859, allocations: 20.38 kB / 408.5 MB, free: 404 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005707/0.2865, allocations: 301.5 kB / 408.8 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.2865, allocations: 0 / 408.8 MB, free: 96 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.076e-05/0.2865, allocations: 8 kB / 408.8 MB, free: 88 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2865, allocations: 4 kB / 408.8 MB, free: 84 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004355/0.287, allocations: 212.4 kB / 409 MB, free: 15.87 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00124/0.2882, allocations: 0.8941 MB / 409.9 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004263/0.2887, allocations: 214.5 kB / 410.1 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002726/0.2889, allocations: 156.8 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.92e-05/0.289, allocations: 4 kB / 410.2 MB, free: 14.55 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005802/0.2896, allocations: 393.6 kB / 410.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.663e-06/0.2896, allocations: 0 / 410.6 MB, free: 14.13 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001289/0.2909, allocations: 0.738 MB / 411.4 MB, free: 13.36 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.493e-05/0.291, allocations: 174.2 kB / 411.5 MB, free: 13.15 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001151/0.2921, allocations: 1.008 MB / 412.5 MB, free: 12.14 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.57e-05/0.2922, allocations: 33.7 kB / 412.6 MB, free: 12.1 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001035/0.2923, allocations: 153.9 kB / 412.7 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.988e-05/0.2924, allocations: 63.56 kB / 412.8 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.2926, allocations: 169.3 kB / 413 MB, free: 11.71 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001098/0.2927, allocations: 342.8 kB / 413.3 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002547/0.2929, allocations: 123.9 kB / 413.4 MB, free: 11.24 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002612/0.2932, allocations: 160.2 kB / 413.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005335/0.2937, allocations: 477.8 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.578e-06/0.2938, allocations: 3.938 kB / 414 MB, free: 10.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.0008681/0.2946, allocations: 0.5859 MB / 414.6 MB, free: 9.918 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.687e-05/0.2947, allocations: 134.8 kB / 414.8 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.011e-06/0.2947, allocations: 0 / 414.8 MB, free: 9.762 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.573e-05/0.2948, allocations: 4 kB / 414.8 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.956e-05/0.2949, allocations: 15.92 kB / 414.8 MB, free: 9.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.2949, allocations: 8.062 kB / 414.8 MB, free: 9.734 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00021/0.2951, allocations: 23.92 kB / 414.8 MB, free: 9.711 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001069/0.2952, allocations: 111.9 kB / 414.9 MB, free: 9.602 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.0005412/0.2958, allocations: 0.5259 MB / 415.4 MB, free: 9.043 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.789e-05/0.2959, allocations: 87.48 kB / 415.5 MB, free: 8.957 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001766/0.296, allocations: 122.4 kB / 415.7 MB, free: 8.832 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.132e-06/0.2961, allocations: 7.984 kB / 415.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.481e-06/0.2961, allocations: 0 / 415.7 MB, free: 8.824 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.585e-06/0.2961, allocations: 3.938 kB / 415.7 MB, free: 8.82 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006281/0.2967, allocations: 0.6219 MB / 416.3 MB, free: 8.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2967, allocations: 3.984 kB / 416.3 MB, free: 8.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.39e-05/0.2968, allocations: 12.12 kB / 416.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.274e-06/0.2968, allocations: 0 / 416.3 MB, free: 8.133 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.456e-05/0.2968, allocations: 27.98 kB / 416.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.2968, allocations: 0 / 416.3 MB, free: 8.105 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.213e-06/0.2968, allocations: 4 kB / 416.3 MB, free: 8.102 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009903/0.2978, allocations: 0.7099 MB / 417 MB, free: 7.348 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006205/0.2985, allocations: 0.4961 MB / 417.5 MB, free: 6.832 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.936e-05/0.2986, allocations: 20 kB / 417.6 MB, free: 6.812 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001785/0.2988, allocations: 15.98 kB / 417.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001389/0.2989, allocations: 52 kB / 417.6 MB, free: 6.746 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001001/0.299, allocations: 123.8 kB / 417.7 MB, free: 6.625 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0008438/0.2999, allocations: 0.7368 MB / 418.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2999, allocations: 0 / 418.5 MB, free: 5.895 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003351/0.3002, allocations: 83.95 kB / 418.6 MB, free: 5.812 MB / 334.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.001307/0.3015, allocations: 1.296 MB / 419.9 MB, free: 4.461 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000834/0.3024, allocations: 0.6498 MB / 420.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.014e-06/0.3024, allocations: 0 / 420.5 MB, free: 3.762 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004989/0.3029, allocations: 0.529 MB / 421 MB, free: 3.184 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008129/0.3037, allocations: 208.5 kB / 421.2 MB, free: 2.996 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005894/0.3096, allocations: 4.527 MB / 425.8 MB, free: 14.34 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006095/0.3103, allocations: 0.9712 MB / 426.7 MB, free: 13.34 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.3106, allocations: 165.1 kB / 426.9 MB, free: 13.18 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000216/0.3108, allocations: 131.3 kB / 427 MB, free: 13.05 MB / 350.1 MB Notification: Performance of SimCode: time 7.31e-07/0.3108, allocations: 0 / 427 MB, free: 13.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02664/0.3375, allocations: 10.25 MB / 437.3 MB, free: 2.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.535/7.872, allocations: 3.859 kB / 437.3 MB, free: 2.898 MB / 350.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Electrical_Digital_Examples_HalfAdder.fmu > Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Digital.Examples.HalfAdder_res.csv","/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