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 2.137/2.137, allocations: 194.9 MB / 211.1 MB, free: 8.551 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005101/0.00051, allocations: 8 kB / 264.1 MB, free: 3.477 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3198/0.3204, allocations: 44.51 MB / 308.6 MB, free: 12.66 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1423/0.4627, allocations: 79.09 MB / 387.7 MB, free: 13.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003039/0.4631, allocations: 75.97 kB / 387.7 MB, free: 13.38 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.375/0.8381, allocations: 34.36 MB / 422.1 MB, free: 92.75 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.8381, allocations: 0 / 422.1 MB, free: 92.75 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.904e-05/0.8382, allocations: 11.88 kB / 422.1 MB, free: 92.75 MB / 346.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.001389/0.8396, allocations: 0.9904 MB / 423.1 MB, free: 92.08 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.993e-05/0.8396, allocations: 14.09 kB / 423.1 MB, free: 92.08 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001221/0.8398, allocations: 50.44 kB / 423.2 MB, free: 92.04 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000153/0.8399, allocations: 81.56 kB / 423.2 MB, free: 92 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.8406, allocations: 409.8 kB / 423.6 MB, free: 91.73 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.789e-05/0.8407, allocations: 14.5 kB / 423.6 MB, free: 91.73 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.165e-05/0.8408, allocations: 24.44 kB / 423.7 MB, free: 91.73 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008716/0.8417, allocations: 301 kB / 424 MB, free: 91.7 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.8417, allocations: 0 / 424 MB, free: 91.7 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.477e-05/0.8418, allocations: 9.875 kB / 424 MB, free: 91.7 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.312e-06/0.8418, allocations: 0 / 424 MB, free: 91.7 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007167/0.8425, allocations: 214 kB / 424.2 MB, free: 91.69 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001853/0.8444, allocations: 0.8801 MB / 425.1 MB, free: 91.36 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007137/0.8452, allocations: 220.8 kB / 425.3 MB, free: 91.33 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.787e-05/0.8452, allocations: 0 / 425.3 MB, free: 91.33 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0007271/0.846, allocations: 390.7 kB / 425.7 MB, free: 91.15 MB / 346.7 MB Notification: Performance of pre-optimization done (n=24): time 2.975e-06/0.846, allocations: 0 / 425.7 MB, free: 91.15 MB / 346.7 MB Notification: Performance of matching and sorting (n=24): time 0.002052/0.8481, allocations: 0.8887 MB / 426.6 MB, free: 90.76 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.794e-05/0.8482, allocations: 175.9 kB / 426.7 MB, free: 90.57 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001739/0.8499, allocations: 0.8784 MB / 427.6 MB, free: 90.3 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001174/0.8501, allocations: 36.89 kB / 427.6 MB, free: 90.27 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000117/0.8502, allocations: 151.1 kB / 427.8 MB, free: 90.18 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001334/0.8503, allocations: 52.69 kB / 427.8 MB, free: 90.15 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.95e-05/0.8504, allocations: 14.67 kB / 427.9 MB, free: 90.15 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.171e-05/0.8505, allocations: 335.7 kB / 428.2 MB, free: 89.84 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000446/0.851, allocations: 129.6 kB / 428.3 MB, free: 89.83 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004306/0.8514, allocations: 160.6 kB / 428.5 MB, free: 89.79 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.8519, allocations: 220.1 kB / 428.7 MB, free: 89.66 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.8519, allocations: 0 / 428.7 MB, free: 89.66 MB / 346.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001433/0.8533, allocations: 0.5682 MB / 429.2 MB, free: 89.41 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001038/0.8535, allocations: 136.5 kB / 429.4 MB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.998e-06/0.8535, allocations: 7.578 kB / 429.4 MB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.537e-05/0.8535, allocations: 0 / 429.4 MB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001211/0.8536, allocations: 22.62 kB / 429.4 MB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.033e-05/0.8537, allocations: 3.688 kB / 429.4 MB, free: 89.27 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005036/0.8542, allocations: 37.16 kB / 429.4 MB, free: 89.26 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001638/0.8544, allocations: 114.9 kB / 429.6 MB, free: 89.25 MB / 346.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.001017/0.8554, allocations: 0.5298 MB / 430.1 MB, free: 88.87 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001559/0.8556, allocations: 77.56 kB / 430.2 MB, free: 88.83 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003164/0.8559, allocations: 127.7 kB / 430.3 MB, free: 88.75 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.246e-06/0.8559, allocations: 5.703 kB / 430.3 MB, free: 88.75 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.8559, allocations: 0 / 430.3 MB, free: 88.75 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.638e-06/0.8559, allocations: 0 / 430.3 MB, free: 88.75 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009189/0.8569, allocations: 0.6183 MB / 430.9 MB, free: 88.36 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.006e-06/0.8569, allocations: 0 / 430.9 MB, free: 88.36 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.976e-05/0.857, allocations: 18.44 kB / 430.9 MB, free: 88.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.675e-06/0.857, allocations: 0 / 430.9 MB, free: 88.35 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.809e-05/0.8571, allocations: 28.56 kB / 431 MB, free: 88.35 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.881e-06/0.8571, allocations: 3.953 kB / 431 MB, free: 88.34 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.894e-06/0.8571, allocations: 0 / 431 MB, free: 88.34 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00166/0.8588, allocations: 0.6845 MB / 431.6 MB, free: 87.97 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001136/0.86, allocations: 0.493 MB / 432.1 MB, free: 87.64 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001823/0.8602, allocations: 25.97 kB / 432.2 MB, free: 87.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004109/0.8606, allocations: 36.23 kB / 432.2 MB, free: 87.62 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002262/0.8608, allocations: 59.38 kB / 432.3 MB, free: 87.61 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001599/0.861, allocations: 118.5 kB / 432.4 MB, free: 87.59 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.001633/0.8627, allocations: 0.7302 MB / 433.1 MB, free: 87.23 MB / 346.7 MB Notification: Performance of sort global known variables: time 8.02e-07/0.8627, allocations: 0 / 433.1 MB, free: 87.23 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0006758/0.8634, allocations: 84.56 kB / 433.2 MB, free: 87.23 MB / 346.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.001991/0.8654, allocations: 1.26 MB / 434.4 MB, free: 86.32 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001293/0.8667, allocations: 0.6618 MB / 435.1 MB, free: 85.87 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.887e-06/0.8668, allocations: 192 / 435.1 MB, free: 85.87 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007372/0.8675, allocations: 0.5329 MB / 435.6 MB, free: 85.45 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001198/0.8687, allocations: 172.6 kB / 435.8 MB, free: 85.41 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006743/0.8755, allocations: 3.461 MB / 439.3 MB, free: 82.13 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007274/0.8763, allocations: 0.9811 MB / 440.3 MB, free: 81.21 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005333/0.8768, allocations: 163.7 kB / 440.4 MB, free: 81.05 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003289/0.8772, allocations: 126 kB / 440.5 MB, free: 80.94 MB / 346.7 MB Notification: Performance of SimCode: time 1.172e-06/0.8772, allocations: 192 / 440.5 MB, free: 80.94 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03757/0.9148, allocations: 9.128 MB / 449.7 MB, free: 72.55 MB / 346.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002229/0.9151, allocations: 168.3 kB / 449.8 MB, free: 72.31 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.761/3.676, allocations: 0 / 449.8 MB, free: 72.31 MB / 346.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat