Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_2_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.921/1.921, allocations: 194.9 MB / 211.7 MB, free: 2.992 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003488/0.0003489, allocations: 8 kB / 264 MB, free: 13.48 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09372/0.0941, allocations: 44.51 MB / 308.5 MB, free: 0.9062 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4311/0.5253, allocations: 97.75 MB / 406.3 MB, free: 12.55 MB / 314.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002118/0.5256, allocations: 80.42 kB / 406.4 MB, free: 12.54 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.408/0.9336, allocations: 123.2 MB / 0.5171 GB, free: 5.273 MB / 410.7 MB Notification: Performance of FrontEnd: time 5.46e-06/0.9337, allocations: 3.984 kB / 0.5171 GB, free: 5.27 MB / 410.7 MB Notification: Performance of Transformations before backend: time 8.834e-05/0.9338, allocations: 40 kB / 0.5172 GB, free: 5.23 MB / 410.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.009995/0.9438, allocations: 3.254 MB / 0.5203 GB, free: 1.906 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.575e-05/0.9438, allocations: 12.03 kB / 0.5204 GB, free: 1.895 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003648/0.9442, allocations: 102.5 kB / 0.5205 GB, free: 1.785 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007918/0.945, allocations: 387.3 kB / 0.5208 GB, free: 1.402 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.2934/1.238, allocations: 2.25 MB / 0.523 GB, free: 81.64 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.346e-05/1.239, allocations: 37.16 kB / 0.5231 GB, free: 81.64 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002804/1.239, allocations: 49.88 kB / 0.5231 GB, free: 81.64 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003148/1.242, allocations: 0.8297 MB / 0.5239 GB, free: 81.53 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.013e-05/1.242, allocations: 0 / 0.5239 GB, free: 81.53 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/1.242, allocations: 19.28 kB / 0.5239 GB, free: 81.53 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.433e-05/1.242, allocations: 21.69 kB / 0.524 GB, free: 81.53 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004311/1.247, allocations: 0.8275 MB / 0.5248 GB, free: 81.52 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03508/1.282, allocations: 2.937 MB / 0.5276 GB, free: 81.09 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01301/1.295, allocations: 0.733 MB / 0.5283 GB, free: 80.96 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.08084/1.376, allocations: 35.91 MB / 0.5634 GB, free: 54.62 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00171/1.378, allocations: 385.4 kB / 0.5638 GB, free: 54.57 MB / 410.7 MB Notification: Performance of pre-optimization done (n=49): time 6.071e-06/1.378, allocations: 0 / 0.5638 GB, free: 54.57 MB / 410.7 MB Notification: Performance of matching and sorting (n=49): time 0.007841/1.386, allocations: 1.46 MB / 0.5652 GB, free: 54.23 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000118/1.386, allocations: 270.8 kB / 0.5655 GB, free: 53.92 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007585/1.393, allocations: 2.347 MB / 0.5678 GB, free: 53.65 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002024/1.394, allocations: 35.98 kB / 0.5678 GB, free: 53.62 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.002077/1.396, allocations: 1.146 MB / 0.5689 GB, free: 53.36 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004008/1.396, allocations: 169.8 kB / 0.5691 GB, free: 53.28 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.986e-05/1.396, allocations: 16.81 kB / 0.5691 GB, free: 53.28 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001154/1.396, allocations: 348.1 kB / 0.5694 GB, free: 52.96 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001368/1.398, allocations: 255.3 kB / 0.5697 GB, free: 52.96 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001793/1.4, allocations: 0.6561 MB / 0.5703 GB, free: 52.46 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001733/1.401, allocations: 341.1 kB / 0.5706 GB, free: 52.45 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.979e-05/1.401, allocations: 2.719 kB / 0.5706 GB, free: 52.45 MB / 410.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.004934/1.406, allocations: 1.018 MB / 0.5716 GB, free: 52.39 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.271e-05/1.406, allocations: 11.5 kB / 0.5716 GB, free: 52.39 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002226/1.407, allocations: 85.91 kB / 0.5717 GB, free: 52.39 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001178/1.408, allocations: 272.2 kB / 0.572 GB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001525/1.409, allocations: 182.7 kB / 0.5722 GB, free: 52.38 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001986/1.412, allocations: 0.8908 MB / 0.573 GB, free: 51.86 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003258/1.415, allocations: 117.8 kB / 0.5731 GB, free: 51.83 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003416/1.415, allocations: 74.41 kB / 0.5732 GB, free: 51.83 MB / 410.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * Number of states: 0 () * Number of discrete variables: 14 ($PRE.vin1.counter,vin1.counter,$PRE.vin2.counter,vin2.counter,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (86): * Single equations (assignments): 85 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of prepare postOptimizeDAE: time 0.002146/1.417, allocations: 423.2 kB / 0.5736 GB, free: 51.71 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00118/1.419, allocations: 366 kB / 0.574 GB, free: 51.53 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008746/1.427, allocations: 1.357 MB / 0.5753 GB, free: 51.43 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.954e-05/1.427, allocations: 3.625 kB / 0.5753 GB, free: 51.43 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.283e-05/1.428, allocations: 2.734 kB / 0.5753 GB, free: 51.43 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.476e-05/1.428, allocations: 6.703 kB / 0.5753 GB, free: 51.43 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009442/1.437, allocations: 2.262 MB / 0.5775 GB, free: 51.01 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001853/1.437, allocations: 72.06 kB / 0.5776 GB, free: 51.01 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006728/1.438, allocations: 69.64 kB / 0.5776 GB, free: 51.01 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001171/1.439, allocations: 263.9 kB / 0.5779 GB, free: 51 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001995/1.439, allocations: 30.83 kB / 0.5779 GB, free: 51 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002279/1.442, allocations: 0.8683 MB / 0.5788 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/1.442, allocations: 0 / 0.5788 GB, free: 50.47 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004781/1.447, allocations: 1.273 MB / 0.58 GB, free: 49.95 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001754/1.448, allocations: 479.1 kB / 0.5805 GB, free: 49.67 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001111/1.45, allocations: 10.16 kB / 0.5805 GB, free: 49.67 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002462/1.452, allocations: 53.05 kB / 0.5805 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003983/1.452, allocations: 65.05 kB / 0.5806 GB, free: 49.66 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001473/1.453, allocations: 42.36 kB / 0.5806 GB, free: 49.66 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.006502/1.459, allocations: 1.796 MB / 0.5824 GB, free: 49.48 MB / 410.7 MB Notification: Performance of sort global known variables: time 9.91e-07/1.459, allocations: 0 / 0.5824 GB, free: 49.48 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.003659/1.463, allocations: 0.6235 MB / 0.583 GB, free: 49.47 MB / 410.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 8 ($whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2) * Number of discrete states: 4 (vin1.counter2,vin2.counter2,vin1.counter,vin2.counter) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (30): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 6 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {2 12} Notification: Performance of Backend phase and start with SimCode phase: time 0.00759/1.471, allocations: 2.815 MB / 0.5857 GB, free: 48.24 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.004038/1.475, allocations: 0.8766 MB / 0.5866 GB, free: 48.11 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.175e-05/1.475, allocations: 7.016 kB / 0.5866 GB, free: 48.11 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002148/1.477, allocations: 0.5059 MB / 0.5871 GB, free: 47.98 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004076/1.481, allocations: 472.3 kB / 0.5876 GB, free: 47.94 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07208/1.553, allocations: 25.13 MB / 0.6121 GB, free: 30.45 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002686/1.556, allocations: 1.666 MB / 0.6137 GB, free: 29.71 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002642/1.559, allocations: 1.13 MB / 0.6148 GB, free: 29.71 MB / 410.7 MB Notification: Performance of SimCode: time 1.442e-06/1.559, allocations: 3.75 kB / 0.6148 GB, free: 29.71 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.65/5.209, allocations: 56.29 MB / 0.6698 GB, free: 7.773 MB / 426.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat