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.001386/0.001387, allocations: 110.2 kB / 17.06 MB, free: 5.969 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.001625/0.001625, allocations: 197.3 kB / 18.01 MB, free: 5.051 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001447/0.001447, allocations: 47.92 kB / 350.8 MB, free: 3.75 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2635, allocations: 49.43 MB / 400.2 MB, free: 8.418 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.003375/0.2669, allocations: 2.114 MB / 402.3 MB, free: 6.711 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002267/0.2692, allocations: 1.013 MB / 403.4 MB, free: 5.691 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.862e-05/0.2693, allocations: 7.938 kB / 403.4 MB, free: 5.684 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001812/0.2695, allocations: 35.64 kB / 403.4 MB, free: 5.648 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000115/0.2696, allocations: 47.53 kB / 403.4 MB, free: 5.602 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004112/0.2701, allocations: 123.8 kB / 403.6 MB, free: 5.48 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005026/0.2706, allocations: 423 kB / 404 MB, free: 5.066 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002149/0.2708, allocations: 103.1 kB / 404.1 MB, free: 4.961 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009952/0.2718, allocations: 0.9397 MB / 405 MB, free: 4.02 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002628/0.2721, allocations: 195.2 kB / 405.2 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 9.004e-05/0.2722, allocations: 36 kB / 405.2 MB, free: 3.793 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.612e-05/0.2723, allocations: 36 kB / 405.3 MB, free: 3.758 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001928/0.2725, allocations: 163.4 kB / 405.4 MB, free: 3.598 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000299/0.2728, allocations: 282.1 kB / 405.7 MB, free: 3.32 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009961/0.2738, allocations: 0.9756 MB / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.2738, allocations: 0 / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.633e-06/0.2738, allocations: 0 / 406.7 MB, free: 2.344 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.001e-05/0.2738, allocations: 0 / 406.7 MB, free: 2.344 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.001385/0.2752, allocations: 1.149 MB / 407.8 MB, free: 1.117 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.018e-05/0.2752, allocations: 12.03 kB / 407.9 MB, free: 1.105 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.635e-05/0.2753, allocations: 58.73 kB / 407.9 MB, free: 1.039 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001212/0.2755, allocations: 84.42 kB / 408 MB, free: 0.957 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005744/0.276, allocations: 436.7 kB / 408.4 MB, free: 500 kB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.125e-05/0.2761, allocations: 24.31 kB / 408.4 MB, free: 476 kB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.133e-05/0.2761, allocations: 24.36 kB / 408.5 MB, free: 452 kB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006497/0.2768, allocations: 297.5 kB / 408.8 MB, free: 148 kB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.071e-05/0.2768, allocations: 4 kB / 408.8 MB, free: 144 kB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.176e-05/0.2769, allocations: 8 kB / 408.8 MB, free: 136 kB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.792e-06/0.2769, allocations: 4 kB / 408.8 MB, free: 132 kB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004528/0.2773, allocations: 200.4 kB / 409 MB, free: 15.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001292/0.2786, allocations: 0.898 MB / 409.9 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004599/0.2791, allocations: 218.5 kB / 410.1 MB, free: 14.76 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002956/0.2794, allocations: 160.8 kB / 410.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.665e-05/0.2795, allocations: 0 / 410.2 MB, free: 14.6 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006239/0.2801, allocations: 385.6 kB / 410.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of pre-optimization done (n=24): time 1.653e-06/0.2801, allocations: 0 / 410.6 MB, free: 14.19 MB / 334.1 MB Notification: Performance of matching and sorting (n=24): time 0.001448/0.2816, allocations: 0.7457 MB / 411.4 MB, free: 13.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000123/0.2817, allocations: 174.2 kB / 411.5 MB, free: 13.2 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.2831, allocations: 1 MB / 412.5 MB, free: 12.2 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.729e-05/0.2831, allocations: 37.64 kB / 412.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001292/0.2833, allocations: 157.9 kB / 412.7 MB, free: 11.99 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.069e-05/0.2834, allocations: 63.56 kB / 412.8 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002289/0.2836, allocations: 165.3 kB / 412.9 MB, free: 11.76 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001603/0.2838, allocations: 338.8 kB / 413.3 MB, free: 11.42 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002737/0.284, allocations: 123.9 kB / 413.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002968/0.2843, allocations: 164.2 kB / 413.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006284/0.285, allocations: 481.7 kB / 414 MB, free: 10.59 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.285, allocations: 4 kB / 414 MB, free: 10.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001009/0.286, allocations: 0.5781 MB / 414.6 MB, free: 9.977 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001137/0.2862, allocations: 134.8 kB / 414.7 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.26e-05/0.2862, allocations: 7.984 kB / 414.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.696e-05/0.2862, allocations: 0 / 414.8 MB, free: 9.812 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.2863, allocations: 12 kB / 414.8 MB, free: 9.801 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.206e-06/0.2863, allocations: 4.047 kB / 414.8 MB, free: 9.797 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002298/0.2866, allocations: 23.92 kB / 414.8 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001474/0.2867, allocations: 115.9 kB / 414.9 MB, free: 9.66 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.0007395/0.2875, allocations: 0.5298 MB / 415.4 MB, free: 9.098 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.2876, allocations: 79.48 kB / 415.5 MB, free: 9.02 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002283/0.2878, allocations: 142.4 kB / 415.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.519e-06/0.2878, allocations: 0 / 415.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.452e-06/0.2878, allocations: 0 / 415.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.468e-06/0.2879, allocations: 96 / 415.7 MB, free: 8.875 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008192/0.2887, allocations: 0.6259 MB / 416.3 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.418e-06/0.2887, allocations: 4 kB / 416.3 MB, free: 8.195 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.864e-05/0.2888, allocations: 12 kB / 416.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.986e-06/0.2888, allocations: 0 / 416.3 MB, free: 8.184 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.394e-05/0.2888, allocations: 27.98 kB / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.264e-06/0.2888, allocations: 0 / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.473e-06/0.2889, allocations: 0 / 416.3 MB, free: 8.156 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001169/0.29, allocations: 0.7099 MB / 417 MB, free: 7.402 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006816/0.2907, allocations: 0.4961 MB / 417.5 MB, free: 6.887 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.2908, allocations: 28 kB / 417.6 MB, free: 6.859 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001635/0.291, allocations: 11.98 kB / 417.6 MB, free: 6.848 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000168/0.2912, allocations: 51.95 kB / 417.6 MB, free: 6.797 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001222/0.2913, allocations: 115.9 kB / 417.7 MB, free: 6.684 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.00097/0.2923, allocations: 0.7367 MB / 418.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.2923, allocations: 0 / 418.5 MB, free: 5.953 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003833/0.2927, allocations: 91.95 kB / 418.6 MB, free: 5.863 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.001569/0.2943, allocations: 1.292 MB / 419.8 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0009778/0.2952, allocations: 0.6497 MB / 420.5 MB, free: 3.816 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.058e-06/0.2953, allocations: 8 kB / 420.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005914/0.2959, allocations: 0.521 MB / 421 MB, free: 3.238 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008843/0.2968, allocations: 200 kB / 421.2 MB, free: 3.055 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006672/0.3034, allocations: 4.529 MB / 425.8 MB, free: 14.39 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/0.3043, allocations: 0.9712 MB / 426.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0003845/0.3047, allocations: 157.5 kB / 426.9 MB, free: 13.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002429/0.3049, allocations: 135.2 kB / 427 MB, free: 13.11 MB / 350.1 MB Notification: Performance of SimCode: time 1.102e-06/0.3049, allocations: 0 / 427 MB, free: 13.11 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03362/0.3386, allocations: 10.25 MB / 437.3 MB, free: 2.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.952/8.29, allocations: 3.859 kB / 437.3 MB, free: 2.957 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