Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_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_cpp_Modelica_Electrical_Digital_Examples_HalfAdder",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.114/2.114, allocations: 194.8 MB / 211.7 MB, free: 2.996 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003704/0.0003704, allocations: 8 kB / 264 MB, free: 13.49 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09627/0.09668, allocations: 44.51 MB / 308.5 MB, free: 0.918 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4151/0.5119, allocations: 79.08 MB / 387.6 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002837/0.5123, allocations: 77.8 kB / 387.7 MB, free: 14.94 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1025/0.6148, allocations: 34.38 MB / 422.1 MB, free: 6.891 MB / 314.7 MB Notification: Performance of FrontEnd: time 2.304e-06/0.6149, allocations: 0 / 422.1 MB, free: 6.891 MB / 314.7 MB Notification: Performance of Transformations before backend: time 4.088e-05/0.6149, allocations: 11 kB / 422.1 MB, free: 6.887 MB / 314.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.001293/0.6162, allocations: 0.9911 MB / 423.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.92e-05/0.6163, allocations: 11.5 kB / 423.1 MB, free: 6.027 MB / 314.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001214/0.6164, allocations: 58.8 kB / 423.1 MB, free: 5.98 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001575/0.6166, allocations: 81.77 kB / 423.2 MB, free: 5.938 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006821/0.6173, allocations: 403.6 kB / 423.6 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.433e-05/0.6174, allocations: 14 kB / 423.6 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.632e-05/0.6175, allocations: 19.44 kB / 423.6 MB, free: 5.633 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008969/0.6184, allocations: 304.9 kB / 423.9 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.342e-05/0.6184, allocations: 0 / 423.9 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.496e-05/0.6185, allocations: 9.844 kB / 424 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.727e-06/0.6185, allocations: 3.906 kB / 424 MB, free: 5.527 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000699/0.6192, allocations: 209.7 kB / 424.2 MB, free: 5.496 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001792/0.621, allocations: 0.8833 MB / 425 MB, free: 4.992 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006974/0.6217, allocations: 217.5 kB / 425.3 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.6218, allocations: 0 / 425.3 MB, free: 4.949 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006883/0.6225, allocations: 378 kB / 425.6 MB, free: 4.703 MB / 314.7 MB Notification: Performance of pre-optimization done (n=24): time 2.495e-06/0.6225, allocations: 0 / 425.6 MB, free: 4.703 MB / 314.7 MB Notification: Performance of matching and sorting (n=24): time 0.00204/0.6246, allocations: 0.8898 MB / 426.5 MB, free: 4.25 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.915e-05/0.6247, allocations: 180.8 kB / 426.7 MB, free: 4.055 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001707/0.6264, allocations: 0.8862 MB / 427.6 MB, free: 3.668 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001186/0.6266, allocations: 35.58 kB / 427.6 MB, free: 3.637 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001174/0.6267, allocations: 197.1 kB / 427.8 MB, free: 3.473 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.6268, allocations: 56.83 kB / 427.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.79e-05/0.6269, allocations: 6.75 kB / 427.9 MB, free: 3.441 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 6.781e-05/0.627, allocations: 321.3 kB / 428.2 MB, free: 3.125 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004351/0.6274, allocations: 122.6 kB / 428.3 MB, free: 3.109 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004335/0.6279, allocations: 159.6 kB / 428.5 MB, free: 3.051 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004348/0.6283, allocations: 222.2 kB / 428.7 MB, free: 2.918 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.49e-06/0.6283, allocations: 3.906 kB / 428.7 MB, free: 2.918 MB / 314.7 MB Notification: Performance of matching and sorting (n=30) (initialization): time 0.001407/0.6297, allocations: 0.5581 MB / 429.2 MB, free: 2.695 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001022/0.6299, allocations: 138 kB / 429.4 MB, free: 2.562 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.698e-06/0.6299, allocations: 4 kB / 429.4 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.358e-05/0.6299, allocations: 3.875 kB / 429.4 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001168/0.6301, allocations: 11.41 kB / 429.4 MB, free: 2.559 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.124e-05/0.6301, allocations: 11.83 kB / 429.4 MB, free: 2.547 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004825/0.6306, allocations: 42.81 kB / 429.4 MB, free: 2.531 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001417/0.6307, allocations: 112.7 kB / 429.6 MB, free: 2.52 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.0009172/0.6317, allocations: 0.5291 MB / 430.1 MB, free: 2.184 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001542/0.6318, allocations: 73.16 kB / 430.2 MB, free: 2.148 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000286/0.6321, allocations: 131.8 kB / 430.3 MB, free: 2.078 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.059e-06/0.6321, allocations: 3.938 kB / 430.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.731e-06/0.6321, allocations: 0 / 430.3 MB, free: 2.074 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.772e-06/0.6322, allocations: 7.828 kB / 430.3 MB, free: 2.07 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008883/0.6331, allocations: 0.6179 MB / 430.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.407e-06/0.6331, allocations: 0 / 430.9 MB, free: 1.691 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.118e-05/0.6332, allocations: 11.88 kB / 430.9 MB, free: 1.688 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.875e-06/0.6332, allocations: 3.938 kB / 430.9 MB, free: 1.684 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.166e-05/0.6333, allocations: 31.42 kB / 431 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.6333, allocations: 0 / 431 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.6333, allocations: 0 / 431 MB, free: 1.676 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001578/0.6349, allocations: 0.6944 MB / 431.7 MB, free: 1.387 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009935/0.6359, allocations: 0.4942 MB / 432.1 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001678/0.6361, allocations: 23.16 kB / 432.2 MB, free: 1.117 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003925/0.6365, allocations: 31.38 kB / 432.2 MB, free: 1.105 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002487/0.6368, allocations: 54.75 kB / 432.3 MB, free: 1.09 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/0.6369, allocations: 120.7 kB / 432.4 MB, free: 1.078 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001526/0.6385, allocations: 0.7319 MB / 433.1 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of sort global known variables: time 7.12e-07/0.6385, allocations: 0 / 433.1 MB, free: 0.7695 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006563/0.6392, allocations: 82.66 kB / 433.2 MB, free: 0.7695 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.002049/0.6412, allocations: 1.255 MB / 434.4 MB, free: 15.96 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.001362/0.6427, allocations: 0.663 MB / 435.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.038e-06/0.6427, allocations: 0 / 435.1 MB, free: 15.66 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008614/0.6436, allocations: 0.5303 MB / 435.6 MB, free: 15.38 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001219/0.6448, allocations: 164.6 kB / 435.8 MB, free: 15.33 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008016/0.6529, allocations: 3.541 MB / 439.3 MB, free: 12.83 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009817/0.6539, allocations: 0.9755 MB / 440.3 MB, free: 11.82 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000565/0.6545, allocations: 151.2 kB / 440.5 MB, free: 11.68 MB / 330.7 MB Notification: Performance of SimCode: time 1.303e-06/0.6545, allocations: 7.938 kB / 440.5 MB, free: 11.67 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.761/3.416, allocations: 6.457 MB / 446.9 MB, free: 5.16 MB / 330.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Digital.Examples.HalfAdder_res.mat does not exist to compare? outputFormat=mat