Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.2_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_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.06/2.06, allocations: 194.9 MB / 211.1 MB, free: 8.559 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000379/0.000379, allocations: 12 kB / 264.1 MB, free: 3.488 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3001/0.3005, allocations: 44.51 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2091/0.5097, allocations: 97.75 MB / 406.3 MB, free: 10.77 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003413/0.5101, allocations: 71.97 kB / 406.4 MB, free: 10.7 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7722/1.282, allocations: 123.2 MB / 0.5172 GB, free: 10.09 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.216e-06/1.282, allocations: 0 / 0.5172 GB, free: 10.09 MB / 362.7 MB Notification: Performance of Transformations before backend: time 8.409e-05/1.282, allocations: 44 kB / 0.5172 GB, free: 10.05 MB / 362.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.009334/1.292, allocations: 3.254 MB / 0.5204 GB, free: 6.723 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.809e-05/1.292, allocations: 11.97 kB / 0.5204 GB, free: 6.711 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000364/1.292, allocations: 98.5 kB / 0.5205 GB, free: 6.605 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007374/1.293, allocations: 383.4 kB / 0.5209 GB, free: 6.227 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006633/1.3, allocations: 2.259 MB / 0.5231 GB, free: 3.895 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.529e-05/1.3, allocations: 33 kB / 0.5231 GB, free: 3.863 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002418/1.3, allocations: 55.89 kB / 0.5231 GB, free: 3.809 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002451/1.302, allocations: 0.8261 MB / 0.524 GB, free: 2.945 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.289e-05/1.302, allocations: 3.984 kB / 0.524 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001221/1.303, allocations: 24 kB / 0.524 GB, free: 2.918 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.587e-05/1.303, allocations: 19.98 kB / 0.524 GB, free: 2.898 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002721/1.305, allocations: 0.8163 MB / 0.5248 GB, free: 2.082 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01176/1.317, allocations: 2.942 MB / 0.5277 GB, free: 15.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003798/1.321, allocations: 0.7219 MB / 0.5284 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3555/1.677, allocations: 35.91 MB / 0.5634 GB, free: 75.23 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001266/1.678, allocations: 382.6 kB / 0.5638 GB, free: 75.18 MB / 394.7 MB Notification: Performance of pre-optimization done (n=49): time 5.54e-06/1.678, allocations: 0 / 0.5638 GB, free: 75.18 MB / 394.7 MB Notification: Performance of matching and sorting (n=49): time 0.005695/1.684, allocations: 1.468 MB / 0.5652 GB, free: 74.86 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001028/1.684, allocations: 268.5 kB / 0.5655 GB, free: 74.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006333/1.69, allocations: 2.349 MB / 0.5678 GB, free: 74.27 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001723/1.69, allocations: 35.45 kB / 0.5678 GB, free: 74.24 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/1.692, allocations: 1.397 MB / 0.5692 GB, free: 74.04 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000376/1.693, allocations: 164 kB / 0.5693 GB, free: 73.96 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.52e-05/1.693, allocations: 20 kB / 0.5694 GB, free: 73.96 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 0.0001014/1.693, allocations: 339 kB / 0.5697 GB, free: 73.65 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001041/1.694, allocations: 258.4 kB / 0.5699 GB, free: 73.65 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001203/1.695, allocations: 0.6502 MB / 0.5706 GB, free: 73.16 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/1.696, allocations: 348.2 kB / 0.5709 GB, free: 73.15 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.047e-05/1.696, allocations: 3.25 kB / 0.5709 GB, free: 73.15 MB / 394.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003582/1.7, allocations: 1.313 MB / 0.5722 GB, free: 72.93 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.165e-05/1.7, allocations: 9.406 kB / 0.5722 GB, free: 72.93 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000154/1.7, allocations: 92.56 kB / 0.5723 GB, free: 72.93 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008153/1.701, allocations: 278.5 kB / 0.5725 GB, free: 72.92 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001081/1.702, allocations: 176 kB / 0.5727 GB, free: 72.92 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/1.703, allocations: 0.8836 MB / 0.5736 GB, free: 72.39 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001957/1.705, allocations: 126.5 kB / 0.5737 GB, free: 72.37 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002246/1.706, allocations: 66.16 kB / 0.5738 GB, free: 72.37 MB / 394.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.00135/1.707, allocations: 428.2 kB / 0.5742 GB, free: 72.25 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007166/1.708, allocations: 370.2 kB / 0.5745 GB, free: 72.07 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005841/1.714, allocations: 1.357 MB / 0.5759 GB, free: 71.97 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/1.714, allocations: 5.781 kB / 0.5759 GB, free: 71.97 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.865e-06/1.714, allocations: 0 / 0.5759 GB, free: 71.97 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.737e-06/1.714, allocations: 2.281 kB / 0.5759 GB, free: 71.97 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006068/1.72, allocations: 2.256 MB / 0.5781 GB, free: 71.55 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001391/1.72, allocations: 67.25 kB / 0.5781 GB, free: 71.55 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005699/1.72, allocations: 81.09 kB / 0.5782 GB, free: 71.55 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007122/1.721, allocations: 261.6 kB / 0.5785 GB, free: 71.54 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.042e-05/1.721, allocations: 35.61 kB / 0.5785 GB, free: 71.54 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001253/1.723, allocations: 0.8594 MB / 0.5793 GB, free: 71.01 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.528e-06/1.723, allocations: 3.875 kB / 0.5793 GB, free: 71.01 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003028/1.726, allocations: 1.28 MB / 0.5806 GB, free: 70.48 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001247/1.727, allocations: 478.3 kB / 0.581 GB, free: 70.2 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005568/1.728, allocations: 13.78 kB / 0.581 GB, free: 70.2 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001427/1.729, allocations: 53.69 kB / 0.5811 GB, free: 70.2 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002462/1.729, allocations: 63.36 kB / 0.5812 GB, free: 70.2 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000108/1.729, allocations: 42.41 kB / 0.5812 GB, free: 70.2 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.003692/1.733, allocations: 1.798 MB / 0.583 GB, free: 70.02 MB / 394.7 MB Notification: Performance of sort global known variables: time 9.92e-07/1.733, allocations: 3 kB / 0.583 GB, free: 70.02 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.002334/1.735, allocations: 0.6245 MB / 0.5836 GB, free: 70.02 MB / 394.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.005203/1.741, allocations: 2.806 MB / 0.5863 GB, free: 68.78 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002881/1.744, allocations: 0.8778 MB / 0.5872 GB, free: 68.65 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 6.923e-06/1.744, allocations: 0 / 0.5872 GB, free: 68.65 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001438/1.745, allocations: 0.4988 MB / 0.5877 GB, free: 68.52 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002656/1.748, allocations: 481.5 kB / 0.5881 GB, free: 68.48 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04472/1.793, allocations: 25.06 MB / 0.6126 GB, free: 51.03 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001168/1.794, allocations: 1.667 MB / 0.6142 GB, free: 50.3 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.001861/1.796, allocations: 345.5 kB / 0.6145 GB, free: 50.28 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/1.797, allocations: 1.122 MB / 0.6156 GB, free: 50.27 MB / 394.7 MB Notification: Performance of SimCode: time 1.583e-06/1.797, allocations: 0 / 0.6156 GB, free: 50.27 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1613/1.959, allocations: 58.34 MB / 0.6726 GB, free: 7.715 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003475/1.959, allocations: 202.1 kB / 0.6728 GB, free: 7.469 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.974/7.934, allocations: 0 / 0.6728 GB, free: 7.469 MB / 394.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.2_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat