Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.2/package.mo) Using package Complex with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.2.mo) Using package Modelica with version 3.2.2 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.2/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.989/1.989, allocations: 194.9 MB / 211.1 MB, free: 7.582 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000343/0.0003431, allocations: 12 kB / 264.1 MB, free: 2.508 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2892/0.2896, allocations: 44.5 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.HalfAdder): time 0.002872/0.2925, allocations: 1.717 MB / 310.3 MB, free: 10.93 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.003069/0.2956, allocations: 1.011 MB / 311.3 MB, free: 9.914 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000116/0.2958, allocations: 7.938 kB / 311.3 MB, free: 9.906 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001554/0.2959, allocations: 23.83 kB / 311.3 MB, free: 9.883 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001671/0.2961, allocations: 47.86 kB / 311.4 MB, free: 9.836 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.2965, allocations: 79.78 kB / 311.4 MB, free: 9.758 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004072/0.297, allocations: 215.6 kB / 311.7 MB, free: 9.547 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002423/0.2972, allocations: 85.62 kB / 311.7 MB, free: 9.461 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001072/0.2983, allocations: 0.6628 MB / 312.4 MB, free: 8.797 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003161/0.2986, allocations: 183.5 kB / 312.6 MB, free: 8.617 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 9.743e-05/0.2987, allocations: 8 kB / 312.6 MB, free: 8.609 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001077/0.2989, allocations: 8 kB / 312.6 MB, free: 8.602 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.2991, allocations: 143.5 kB / 312.7 MB, free: 8.461 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001637/0.2993, allocations: 141.3 kB / 312.9 MB, free: 8.316 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009908/0.3003, allocations: 0.7842 MB / 313.7 MB, free: 7.531 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.394e-06/0.3003, allocations: 0 / 313.7 MB, free: 7.531 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.3003, allocations: 0 / 313.7 MB, free: 7.531 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.3003, allocations: 4 kB / 313.7 MB, free: 7.527 MB / 250.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.00147/0.3018, allocations: 0.9784 MB / 314.6 MB, free: 6.473 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.702e-05/0.3018, allocations: 8.031 kB / 314.6 MB, free: 6.465 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001024/0.302, allocations: 50.55 kB / 314.7 MB, free: 6.406 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001988/0.3022, allocations: 91.02 kB / 314.8 MB, free: 6.316 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006555/0.3028, allocations: 395.5 kB / 315.2 MB, free: 5.891 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.932e-05/0.3029, allocations: 19.92 kB / 315.2 MB, free: 5.871 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.626e-05/0.303, allocations: 20 kB / 315.2 MB, free: 5.852 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00094/0.3039, allocations: 289.4 kB / 315.5 MB, free: 5.562 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.22e-05/0.304, allocations: 4 kB / 315.5 MB, free: 5.559 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.55e-05/0.3041, allocations: 12 kB / 315.5 MB, free: 5.547 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.27e-05/0.3041, allocations: 4 kB / 315.5 MB, free: 5.543 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007622/0.3048, allocations: 215.8 kB / 315.7 MB, free: 5.332 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001931/0.3068, allocations: 0.8864 MB / 316.6 MB, free: 4.395 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007294/0.3075, allocations: 214.5 kB / 316.8 MB, free: 4.176 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.342e-05/0.3076, allocations: 3.938 kB / 316.8 MB, free: 4.172 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008546/0.3085, allocations: 386.1 kB / 317.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of pre-optimization done (n=24): time 3.016e-06/0.3085, allocations: 0 / 317.2 MB, free: 3.758 MB / 250.7 MB Notification: Performance of matching and sorting (n=24): time 0.002393/0.3109, allocations: 0.9043 MB / 318.1 MB, free: 2.785 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001287/0.311, allocations: 174.2 kB / 318.3 MB, free: 2.578 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002049/0.3131, allocations: 1 MB / 319.3 MB, free: 1.562 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 7.818e-05/0.3132, allocations: 33.7 kB / 319.3 MB, free: 1.523 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001524/0.3134, allocations: 149.8 kB / 319.5 MB, free: 1.375 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001132/0.3135, allocations: 59.28 kB / 319.5 MB, free: 1.316 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.3136, allocations: 16 kB / 319.5 MB, free: 1.301 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001959/0.3138, allocations: 334.8 kB / 319.9 MB, free: 0.9648 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005019/0.3143, allocations: 120 kB / 320 MB, free: 0.8477 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005146/0.3148, allocations: 160.2 kB / 320.1 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005294/0.3153, allocations: 222.8 kB / 320.3 MB, free: 444 kB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.533e-06/0.3154, allocations: 4 kB / 320.3 MB, free: 440 kB / 250.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001664/0.317, allocations: 0.5819 MB / 320.9 MB, free: 15.82 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001369/0.3172, allocations: 134.8 kB / 321.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.953e-06/0.3172, allocations: 0 / 321.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.929e-05/0.3172, allocations: 3.953 kB / 321.1 MB, free: 15.66 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001324/0.3174, allocations: 15.98 kB / 321.1 MB, free: 15.64 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.26e-05/0.3174, allocations: 7.938 kB / 321.1 MB, free: 15.63 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005001/0.3179, allocations: 35.83 kB / 321.1 MB, free: 15.6 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001998/0.3181, allocations: 119.9 kB / 321.2 MB, free: 15.48 MB / 266.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0009996/0.3191, allocations: 0.5239 MB / 321.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001731/0.3193, allocations: 79.06 kB / 321.8 MB, free: 14.84 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003101/0.3197, allocations: 134.3 kB / 322 MB, free: 14.7 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3197, allocations: 11.89 kB / 322 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.861e-06/0.3197, allocations: 4 kB / 322 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.889e-06/0.3197, allocations: 0 / 322 MB, free: 14.69 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001095/0.3208, allocations: 0.622 MB / 322.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.485e-06/0.3208, allocations: 0 / 322.6 MB, free: 14.01 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.763e-05/0.3209, allocations: 8 kB / 322.6 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.982e-06/0.3209, allocations: 0 / 322.6 MB, free: 14 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.955e-05/0.321, allocations: 31.97 kB / 322.6 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.741e-06/0.321, allocations: 3.953 kB / 322.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.3211, allocations: 0 / 322.7 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001855/0.3229, allocations: 0.7017 MB / 323.4 MB, free: 13.22 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001087/0.324, allocations: 0.4919 MB / 323.8 MB, free: 12.71 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001738/0.3242, allocations: 24.17 kB / 323.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004071/0.3246, allocations: 28.02 kB / 323.9 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002465/0.3249, allocations: 67.81 kB / 324 MB, free: 12.59 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001944/0.3251, allocations: 119.9 kB / 324.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.001633/0.3268, allocations: 0.725 MB / 324.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 6.11e-07/0.3268, allocations: 0 / 324.8 MB, free: 11.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006441/0.3275, allocations: 92 kB / 324.9 MB, free: 11.66 MB / 266.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002365/0.3298, allocations: 1.285 MB / 326.2 MB, free: 10.32 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3314, allocations: 0.6536 MB / 326.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.3315, allocations: 0 / 326.8 MB, free: 9.621 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009271/0.3324, allocations: 0.5288 MB / 327.4 MB, free: 9.043 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.3336, allocations: 173.8 kB / 327.5 MB, free: 8.879 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007815/0.3415, allocations: 2.87 MB / 330.4 MB, free: 5.934 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001041/0.3425, allocations: 0.9795 MB / 331.4 MB, free: 4.926 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005382/0.3431, allocations: 161.1 kB / 331.5 MB, free: 4.77 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003591/0.3435, allocations: 131.3 kB / 331.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of SimCode: time 1.002e-06/0.3435, allocations: 0 / 331.7 MB, free: 4.641 MB / 266.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04092/0.3844, allocations: 9.047 MB / 340.7 MB, free: 11.59 MB / 282.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000361/0.3849, allocations: 172.3 kB / 340.9 MB, free: 11.35 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.443/2.828, allocations: 0 / 340.9 MB, free: 11.35 MB / 282.7 MB "" Variables in the reference:time,Adder.AND.G2.x,Adder.AND.G2.y,Adder.XOR.G2.x,Adder.XOR.G2.y Variables in the result:Adder.AND.G1.auxiliary[1],Adder.AND.G1.auxiliary[2],Adder.AND.G1.auxiliary_n,Adder.AND.G1.n,Adder.AND.G1.x[1],Adder.AND.G1.x[2],Adder.AND.G1.y,Adder.AND.G2.delayTime,Adder.AND.G2.lh,Adder.AND.G2.tHL,Adder.AND.G2.tLH,Adder.AND.G2.t_next,Adder.AND.G2.x,Adder.AND.G2.y,Adder.AND.G2.y0,Adder.AND.G2.y_auxiliary,Adder.AND.G2.y_old,Adder.AND.n,Adder.AND.tHL,Adder.AND.tLH,Adder.AND.x[1],Adder.AND.x[2],Adder.AND.y,Adder.AND.y0,Adder.XOR.G1.auxiliary[1],Adder.XOR.G1.auxiliary[2],Adder.XOR.G1.auxiliary_n,Adder.XOR.G1.n,Adder.XOR.G1.x[1],Adder.XOR.G1.x[2],Adder.XOR.G1.y,Adder.XOR.G2.delayTime,Adder.XOR.G2.lh,Adder.XOR.G2.tHL,Adder.XOR.G2.tLH,Adder.XOR.G2.t_next,Adder.XOR.G2.x,Adder.XOR.G2.y,Adder.XOR.G2.y0,Adder.XOR.G2.y_auxiliary,Adder.XOR.G2.y_old,Adder.XOR.n,Adder.XOR.tHL,Adder.XOR.tLH,Adder.XOR.x[1],Adder.XOR.x[2],Adder.XOR.y,Adder.XOR.y0,Adder.a,Adder.b,Adder.c,Adder.delayTime,Adder.s,a.n,a.t[1],a.t[2],a.t[3],a.t[4],a.x[1],a.x[2],a.x[3],a.x[4],a.y,a.y0,b.n,b.t[1],b.t[2],b.x[1],b.x[2],b.y,b.y0,c.n,c.value_0,c.value_1,c.value_H,c.value_L,c.value_U,c.value_W,c.value_X,c.value_Z,c.value_m,c.x[1],c.y[1],s.n,s.value_0,s.value_1,s.value_H,s.value_L,s.value_U,s.value_W,s.value_X,s.value_Z,s.value_m,s.x[1],s.y[1],time