Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_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_Modelica_Electrical_Spice3_Examples_Nand",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.698/1.698, allocations: 171.1 MB / 186.1 MB, free: 1.043 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005072/0.0005073, allocations: 11.98 kB / 233.4 MB, free: 2.27 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08039/0.08093, allocations: 38.77 MB / 272.1 MB, free: 11.41 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3728/0.4538, allocations: 93.93 MB / 366.1 MB, free: 11.23 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002854/0.4541, allocations: 76.08 kB / 366.1 MB, free: 11.19 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6394/1.094, allocations: 125.3 MB / 491.4 MB, free: 70.12 MB / 346.7 MB Notification: Performance of FrontEnd: time 3.687e-06/1.094, allocations: 0 / 491.4 MB, free: 70.12 MB / 346.7 MB Notification: Performance of Transformations before backend: time 7.576e-05/1.094, allocations: 40 kB / 491.4 MB, free: 70.08 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.008572/1.102, allocations: 3.258 MB / 494.7 MB, free: 66.75 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/1.102, allocations: 12.03 kB / 494.7 MB, free: 66.74 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003802/1.103, allocations: 94.5 kB / 494.8 MB, free: 66.64 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007293/1.103, allocations: 383.4 kB / 495.2 MB, free: 66.26 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006147/1.11, allocations: 2.259 MB / 497.4 MB, free: 63.93 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.67e-05/1.11, allocations: 29 kB / 497.4 MB, free: 63.9 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002461/1.11, allocations: 51.98 kB / 497.5 MB, free: 63.85 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002222/1.112, allocations: 0.8339 MB / 498.3 MB, free: 62.98 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.361e-05/1.112, allocations: 0 / 498.3 MB, free: 62.98 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001158/1.112, allocations: 16 kB / 498.3 MB, free: 62.96 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.837e-05/1.112, allocations: 19.98 kB / 498.4 MB, free: 62.94 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002355/1.115, allocations: 0.8241 MB / 499.2 MB, free: 62.12 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007357/1.122, allocations: 2.944 MB / 0.4904 GB, free: 59.11 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002037/1.124, allocations: 0.7315 MB / 0.4911 GB, free: 58.34 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.04357/1.168, allocations: 35.92 MB / 0.5262 GB, free: 17.29 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001184/1.169, allocations: 377.7 kB / 0.5265 GB, free: 16.91 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 4.899e-06/1.169, allocations: 0 / 0.5265 GB, free: 16.91 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.005385/1.175, allocations: 1.458 MB / 0.5279 GB, free: 15.42 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001316/1.175, allocations: 269 kB / 0.5282 GB, free: 15.1 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005406/1.18, allocations: 2.347 MB / 0.5305 GB, free: 12.74 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002741/1.181, allocations: 41.69 kB / 0.5305 GB, free: 12.69 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001746/1.182, allocations: 1.395 MB / 0.5319 GB, free: 11.29 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002779/1.183, allocations: 165.7 kB / 0.5321 GB, free: 11.12 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.833e-05/1.183, allocations: 20 kB / 0.5321 GB, free: 11.11 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001055/1.183, allocations: 337.9 kB / 0.5324 GB, free: 10.77 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009484/1.184, allocations: 261.8 kB / 0.5326 GB, free: 10.52 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001117/1.185, allocations: 0.6622 MB / 0.5333 GB, free: 9.664 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001058/1.186, allocations: 344 kB / 0.5336 GB, free: 9.324 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.729e-06/1.186, allocations: 4 kB / 0.5336 GB, free: 9.32 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003482/1.189, allocations: 1.307 MB / 0.5349 GB, free: 8.004 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.351e-05/1.19, allocations: 9.094 kB / 0.5349 GB, free: 7.996 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001497/1.19, allocations: 83.98 kB / 0.535 GB, free: 7.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008257/1.191, allocations: 281.3 kB / 0.5353 GB, free: 7.637 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001087/1.192, allocations: 187.7 kB / 0.5354 GB, free: 7.453 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001273/1.193, allocations: 0.8724 MB / 0.5363 GB, free: 6.555 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002003/1.195, allocations: 127 kB / 0.5364 GB, free: 6.43 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/1.195, allocations: 68 kB / 0.5365 GB, free: 6.363 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.001336/1.196, allocations: 421.5 kB / 0.5369 GB, free: 5.941 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006067/1.197, allocations: 371.6 kB / 0.5372 GB, free: 5.574 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005357/1.202, allocations: 1.357 MB / 0.5386 GB, free: 4.191 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.294e-05/1.203, allocations: 4 kB / 0.5386 GB, free: 4.188 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.157e-06/1.203, allocations: 4 kB / 0.5386 GB, free: 4.184 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.866e-06/1.203, allocations: 3.938 kB / 0.5386 GB, free: 4.18 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006016/1.209, allocations: 2.264 MB / 0.5408 GB, free: 1.832 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001336/1.209, allocations: 67.98 kB / 0.5408 GB, free: 1.766 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005668/1.209, allocations: 76 kB / 0.5409 GB, free: 1.691 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007017/1.21, allocations: 264.7 kB / 0.5412 GB, free: 1.43 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.703e-05/1.21, allocations: 35.92 kB / 0.5412 GB, free: 1.395 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001221/1.211, allocations: 0.8673 MB / 0.542 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/1.211, allocations: 0 / 0.542 GB, free: 0.5039 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003528/1.215, allocations: 1.289 MB / 0.5433 GB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001603/1.217, allocations: 472.4 kB / 0.5438 GB, free: 14.65 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005834/1.217, allocations: 15.98 kB / 0.5438 GB, free: 14.63 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00136/1.219, allocations: 39.97 kB / 0.5438 GB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002787/1.219, allocations: 67.92 kB / 0.5439 GB, free: 14.53 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001211/1.219, allocations: 36 kB / 0.5439 GB, free: 14.49 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004488/1.224, allocations: 1.801 MB / 0.5457 GB, free: 12.69 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.122e-06/1.224, allocations: 0 / 0.5457 GB, free: 12.69 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002639/1.226, allocations: 0.6321 MB / 0.5463 GB, free: 12.05 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.006102/1.232, allocations: 2.8 MB / 0.549 GB, free: 9.203 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003287/1.236, allocations: 0.8926 MB / 0.5499 GB, free: 8.285 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.071e-06/1.236, allocations: 4 kB / 0.5499 GB, free: 8.281 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001649/1.237, allocations: 0.4965 MB / 0.5504 GB, free: 7.762 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00307/1.241, allocations: 471.7 kB / 0.5508 GB, free: 7.297 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3166/1.557, allocations: 25.06 MB / 0.5753 GB, free: 73.49 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001913/1.559, allocations: 1.671 MB / 0.5769 GB, free: 72.76 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002231/1.561, allocations: 336.4 kB / 0.5773 GB, free: 72.74 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00194/1.563, allocations: 1.125 MB / 0.5784 GB, free: 72.74 MB / 362.7 MB Notification: Performance of SimCode: time 1.453e-06/1.563, allocations: 0 / 0.5784 GB, free: 72.74 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1392/1.703, allocations: 58.35 MB / 0.6353 GB, free: 42.85 MB / 362.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002797/1.703, allocations: 197.5 kB / 0.6355 GB, free: 42.61 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.463/7.166, allocations: 4 kB / 0.6355 GB, free: 42.61 MB / 362.7 MB TODO: How the !@#!# did the simulation report success but simulation result Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand_res.mat does not exist to compare? outputFormat=mat