Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.HalfAdder,fileNamePrefix="Modelica_3_2_1_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.666/1.666, allocations: 171.1 MB / 186.1 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005508/0.0005509, allocations: 8 kB / 233.4 MB, free: 2.266 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09024/0.09085, allocations: 38.77 MB / 272.1 MB, free: 11.42 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.347/0.4379, allocations: 73.77 MB / 345.9 MB, free: 15.07 MB / 282.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002701/0.4383, allocations: 71.34 kB / 346 MB, free: 15.04 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1221/0.5604, allocations: 34.37 MB / 380.3 MB, free: 2.758 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.976e-06/0.5604, allocations: 3.938 kB / 380.3 MB, free: 2.754 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.773e-05/0.5605, allocations: 16 kB / 380.4 MB, free: 2.738 MB / 298.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.001714/0.5622, allocations: 0.9871 MB / 381.3 MB, free: 1.719 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.5623, allocations: 12.03 kB / 381.4 MB, free: 1.707 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001293/0.5624, allocations: 56.16 kB / 381.4 MB, free: 1.652 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001828/0.5626, allocations: 86.97 kB / 381.5 MB, free: 1.566 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008182/0.5634, allocations: 407.8 kB / 381.9 MB, free: 1.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.21e-05/0.5635, allocations: 15.12 kB / 381.9 MB, free: 1.148 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.581e-05/0.5636, allocations: 21.88 kB / 381.9 MB, free: 1.133 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009521/0.5646, allocations: 291.4 kB / 382.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.209e-05/0.5646, allocations: 0 / 382.2 MB, free: 0.9141 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.777e-05/0.5647, allocations: 11.88 kB / 382.2 MB, free: 0.9062 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.5647, allocations: 4 kB / 382.2 MB, free: 0.9023 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000732/0.5654, allocations: 212.7 kB / 382.4 MB, free: 0.7578 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002036/0.5675, allocations: 0.8826 MB / 383.3 MB, free: 12 kB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008228/0.5684, allocations: 222.5 kB / 383.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.225e-05/0.5684, allocations: 0 / 383.5 MB, free: 15.78 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008346/0.5693, allocations: 381.9 kB / 383.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.234e-06/0.5693, allocations: 0 / 383.9 MB, free: 15.37 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.004674/0.574, allocations: 0.888 MB / 384.8 MB, free: 14.42 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002008/0.5742, allocations: 170.3 kB / 385 MB, free: 14.21 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003264/0.5775, allocations: 0.8938 MB / 385.9 MB, free: 13.32 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002093/0.5778, allocations: 37.7 kB / 385.9 MB, free: 13.27 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002472/0.5781, allocations: 153.8 kB / 386 MB, free: 13.12 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001924/0.5783, allocations: 51.36 kB / 386.1 MB, free: 13.07 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.553e-05/0.5784, allocations: 4 kB / 386.1 MB, free: 13.06 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0002236/0.5786, allocations: 338.9 kB / 386.4 MB, free: 12.72 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007209/0.5794, allocations: 123.9 kB / 386.5 MB, free: 12.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000781/0.5802, allocations: 160.2 kB / 386.7 MB, free: 12.43 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00156/0.5818, allocations: 227.4 kB / 386.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.75e-05/0.5818, allocations: 0 / 386.9 MB, free: 12.18 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001956/0.5838, allocations: 0.5707 MB / 387.5 MB, free: 11.58 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000141/0.584, allocations: 135.9 kB / 387.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.776e-06/0.584, allocations: 0 / 387.6 MB, free: 11.43 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.912e-05/0.584, allocations: 4.062 kB / 387.6 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001193/0.5842, allocations: 12 kB / 387.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.332e-05/0.5842, allocations: 7.938 kB / 387.7 MB, free: 11.4 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004993/0.5847, allocations: 35.88 kB / 387.7 MB, free: 11.37 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001927/0.5849, allocations: 115.9 kB / 387.8 MB, free: 11.25 MB / 314.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.001092/0.586, allocations: 0.5414 MB / 388.3 MB, free: 10.68 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001738/0.5862, allocations: 79.06 kB / 388.4 MB, free: 10.6 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003388/0.5865, allocations: 134.3 kB / 388.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.15e-06/0.5866, allocations: 4 kB / 388.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.572e-06/0.5866, allocations: 0 / 388.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.5866, allocations: 128 / 388.6 MB, free: 10.46 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001136/0.5877, allocations: 0.6259 MB / 389.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.286e-06/0.5878, allocations: 0 / 389.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.443e-05/0.5879, allocations: 8 kB / 389.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.191e-06/0.5879, allocations: 0 / 389.2 MB, free: 9.773 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.325e-05/0.588, allocations: 31.98 kB / 389.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.588, allocations: 0 / 389.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.763e-06/0.588, allocations: 0 / 389.2 MB, free: 9.742 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001897/0.5899, allocations: 0.6983 MB / 389.9 MB, free: 9 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001252/0.5912, allocations: 0.4919 MB / 390.4 MB, free: 8.488 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001759/0.5914, allocations: 20 kB / 390.4 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004529/0.5919, allocations: 27.89 kB / 390.5 MB, free: 8.441 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002514/0.5921, allocations: 59.92 kB / 390.5 MB, free: 8.383 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001979/0.5923, allocations: 119.9 kB / 390.6 MB, free: 8.266 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001703/0.5941, allocations: 0.7289 MB / 391.4 MB, free: 7.543 MB / 314.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.5941, allocations: 0 / 391.4 MB, free: 7.543 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006128/0.5947, allocations: 84 kB / 391.4 MB, free: 7.461 MB / 314.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.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.XOR.G1.auxiliary_n,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,Adder.AND.G1.auxiliary_n,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.002354/0.5971, allocations: 1.27 MB / 392.7 MB, free: 6.133 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.5987, allocations: 0.6498 MB / 393.4 MB, free: 5.434 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.627e-06/0.5987, allocations: 0 / 393.4 MB, free: 5.434 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009427/0.5997, allocations: 0.5367 MB / 393.9 MB, free: 4.848 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001266/0.601, allocations: 163.5 kB / 394.1 MB, free: 4.688 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007815/0.6088, allocations: 3.466 MB / 397.5 MB, free: 1.148 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009725/0.6098, allocations: 0.9756 MB / 398.5 MB, free: 152 kB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005786/0.6104, allocations: 169.4 kB / 398.7 MB, free: 15.98 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003556/0.6108, allocations: 127.3 kB / 398.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of SimCode: time 9.22e-07/0.6108, allocations: 0 / 398.8 MB, free: 15.85 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04049/0.6513, allocations: 9.117 MB / 407.9 MB, free: 6.773 MB / 330.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003346/0.6517, allocations: 171.8 kB / 408.1 MB, free: 6.535 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.622/3.274, allocations: 4 kB / 408.1 MB, free: 6.531 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat