Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Nand.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.Spice3.Examples.Nand,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.621/1.621, allocations: 171.2 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003718/0.0003718, allocations: 8 kB / 233.3 MB, free: 2.949 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09319/0.09361, allocations: 38.78 MB / 272.1 MB, free: 12.09 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.365/0.4587, allocations: 93.92 MB / 366 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002761/0.459, allocations: 74.09 kB / 366.1 MB, free: 11.75 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6277/1.087, allocations: 125.3 MB / 491.4 MB, free: 70.65 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.757e-06/1.087, allocations: 4 kB / 491.4 MB, free: 70.65 MB / 346.7 MB Notification: Performance of Transformations before backend: time 6.745e-05/1.087, allocations: 40 kB / 491.4 MB, free: 70.61 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: 146 * Number of variables: 146 Notification: Performance of Generate backend data structure: time 0.008278/1.095, allocations: 3.258 MB / 494.7 MB, free: 67.28 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.1e-05/1.095, allocations: 8.031 kB / 494.7 MB, free: 67.27 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003625/1.096, allocations: 94.52 kB / 494.8 MB, free: 67.17 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006787/1.096, allocations: 379.4 kB / 495.1 MB, free: 66.8 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005773/1.102, allocations: 2.267 MB / 497.4 MB, free: 64.46 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.517e-05/1.102, allocations: 33 kB / 497.4 MB, free: 64.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001901/1.102, allocations: 48 kB / 497.5 MB, free: 64.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002096/1.104, allocations: 0.826 MB / 498.3 MB, free: 63.52 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.433e-05/1.105, allocations: 4 kB / 498.3 MB, free: 63.51 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001252/1.105, allocations: 20 kB / 498.3 MB, free: 63.49 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.87e-05/1.105, allocations: 19.98 kB / 498.3 MB, free: 63.47 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002382/1.107, allocations: 0.828 MB / 499.2 MB, free: 62.64 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007345/1.114, allocations: 2.944 MB / 0.4903 GB, free: 59.63 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001995/1.117, allocations: 0.7354 MB / 0.4911 GB, free: 58.87 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04355/1.16, allocations: 35.92 MB / 0.5261 GB, free: 17.82 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001146/1.161, allocations: 381.7 kB / 0.5265 GB, free: 17.43 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 3.907e-06/1.161, allocations: 0 / 0.5265 GB, free: 17.43 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.005192/1.167, allocations: 1.454 MB / 0.5279 GB, free: 15.95 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.479e-05/1.167, allocations: 273 kB / 0.5282 GB, free: 15.62 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004379/1.171, allocations: 2.347 MB / 0.5305 GB, free: 13.26 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.000162/1.171, allocations: 37.7 kB / 0.5305 GB, free: 13.22 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001167/1.172, allocations: 1.154 MB / 0.5316 GB, free: 12.06 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002595/1.173, allocations: 165.7 kB / 0.5318 GB, free: 11.89 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.051e-05/1.173, allocations: 20 kB / 0.5318 GB, free: 11.88 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.153e-05/1.173, allocations: 338.8 kB / 0.5321 GB, free: 11.54 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009475/1.174, allocations: 257.8 kB / 0.5324 GB, free: 11.29 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001116/1.175, allocations: 0.6661 MB / 0.533 GB, free: 10.43 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/1.176, allocations: 340.1 kB / 0.5334 GB, free: 10.09 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.04e-05/1.176, allocations: 4 kB / 0.5334 GB, free: 10.09 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.002936/1.179, allocations: 1.017 MB / 0.5344 GB, free: 9.066 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.825e-05/1.179, allocations: 8 kB / 0.5344 GB, free: 9.059 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001488/1.179, allocations: 79.98 kB / 0.5344 GB, free: 8.98 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007777/1.18, allocations: 285.1 kB / 0.5347 GB, free: 8.699 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001027/1.181, allocations: 179.7 kB / 0.5349 GB, free: 8.523 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001235/1.182, allocations: 0.8764 MB / 0.5357 GB, free: 7.621 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001928/1.184, allocations: 126.9 kB / 0.5359 GB, free: 7.496 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000142/1.184, allocations: 72.05 kB / 0.5359 GB, free: 7.426 MB / 346.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.001293/1.186, allocations: 425.5 kB / 0.5363 GB, free: 7 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006393/1.186, allocations: 367.6 kB / 0.5367 GB, free: 6.637 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005486/1.192, allocations: 1.349 MB / 0.538 GB, free: 5.266 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/1.192, allocations: 8 kB / 0.538 GB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.382e-06/1.192, allocations: 0 / 0.538 GB, free: 5.258 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/1.192, allocations: 3.984 kB / 0.538 GB, free: 5.254 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005673/1.198, allocations: 2.26 MB / 0.5402 GB, free: 2.91 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001346/1.198, allocations: 71.98 kB / 0.5403 GB, free: 2.84 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005658/1.198, allocations: 76 kB / 0.5404 GB, free: 2.766 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006755/1.199, allocations: 256.7 kB / 0.5406 GB, free: 2.512 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.29e-05/1.199, allocations: 39.98 kB / 0.5406 GB, free: 2.473 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00116/1.2, allocations: 0.8675 MB / 0.5415 GB, free: 1.582 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.098e-06/1.2, allocations: 4.031 kB / 0.5415 GB, free: 1.578 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003116/1.204, allocations: 1.281 MB / 0.5427 GB, free: 224 kB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00139/1.205, allocations: 480.3 kB / 0.5432 GB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000605/1.206, allocations: 12 kB / 0.5432 GB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001317/1.207, allocations: 47.95 kB / 0.5433 GB, free: 15.67 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002527/1.207, allocations: 55.94 kB / 0.5433 GB, free: 15.61 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001178/1.207, allocations: 39.98 kB / 0.5434 GB, free: 15.57 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004356/1.212, allocations: 1.805 MB / 0.5451 GB, free: 13.77 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.91e-07/1.212, allocations: 0 / 0.5451 GB, free: 13.77 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002579/1.214, allocations: 0.6245 MB / 0.5457 GB, free: 13.14 MB / 362.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.005896/1.22, allocations: 2.808 MB / 0.5485 GB, free: 10.28 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003129/1.223, allocations: 0.8888 MB / 0.5493 GB, free: 9.363 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 8.757e-06/1.224, allocations: 4 kB / 0.5493 GB, free: 9.359 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001635/1.225, allocations: 0.5042 MB / 0.5498 GB, free: 8.832 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002778/1.228, allocations: 466.3 kB / 0.5503 GB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3359/1.564, allocations: 25.12 MB / 0.5748 GB, free: 74.41 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00139/1.565, allocations: 1.666 MB / 0.5764 GB, free: 73.68 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00158/1.567, allocations: 1.129 MB / 0.5775 GB, free: 73.68 MB / 362.7 MB Notification: Performance of SimCode: time 1.252e-06/1.567, allocations: 3.938 kB / 0.5775 GB, free: 73.68 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.359/4.926, allocations: 56.3 MB / 0.6325 GB, free: 47.12 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_cpp_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat