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: translateModel(Modelica.Electrical.Spice3.Examples.Nand,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|mp2.S.v",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Spice3.Examples.Nand") Notification: Performance of loadModel(Modelica): time 2.112/2.112, allocations: 171.1 MB / 186.7 MB, free: 1.129 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005105/0.0005107, allocations: 15.98 kB / 233.8 MB, free: 2.391 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08795/0.08848, allocations: 38.76 MB / 272.6 MB, free: 11.54 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3938/0.4823, allocations: 93.93 MB / 366.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000297/0.4827, allocations: 83.25 kB / 366.6 MB, free: 11.64 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.6822/1.165, allocations: 125.2 MB / 491.9 MB, free: 70.41 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.825e-06/1.165, allocations: 0 / 491.9 MB, free: 70.41 MB / 346.7 MB Notification: Performance of Transformations before backend: time 8.775e-05/1.165, allocations: 44 kB / 491.9 MB, free: 70.37 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.008266/1.173, allocations: 3.262 MB / 495.2 MB, free: 67.04 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.623e-05/1.173, allocations: 8.031 kB / 495.2 MB, free: 67.03 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006503/1.174, allocations: 375.5 kB / 495.5 MB, free: 66.66 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005748/1.18, allocations: 2.259 MB / 497.8 MB, free: 64.32 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.836e-05/1.18, allocations: 37 kB / 497.8 MB, free: 64.29 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002094/1.18, allocations: 48 kB / 497.9 MB, free: 64.24 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002105/1.182, allocations: 0.83 MB / 498.7 MB, free: 63.38 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/1.182, allocations: 0 / 498.7 MB, free: 63.38 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000122/1.182, allocations: 20 kB / 498.7 MB, free: 63.36 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.231e-05/1.183, allocations: 19.98 kB / 498.8 MB, free: 63.34 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002427/1.185, allocations: 0.828 MB / 499.6 MB, free: 62.51 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007908/1.193, allocations: 2.944 MB / 0.4908 GB, free: 59.5 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002087/1.195, allocations: 0.7392 MB / 0.4915 GB, free: 58.73 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.05967/1.255, allocations: 35.91 MB / 0.5265 GB, free: 17.69 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001736/1.257, allocations: 373.7 kB / 0.5269 GB, free: 17.31 MB / 346.7 MB Notification: Performance of pre-optimization done (n=49): time 7.384e-06/1.257, allocations: 4 kB / 0.5269 GB, free: 17.3 MB / 346.7 MB Notification: Performance of matching and sorting (n=49): time 0.007864/1.264, allocations: 1.458 MB / 0.5283 GB, free: 15.82 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/1.265, allocations: 269 kB / 0.5286 GB, free: 15.49 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006614/1.271, allocations: 2.785 MB / 0.5313 GB, free: 12.69 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.00015/1.272, allocations: 33.7 kB / 0.5313 GB, free: 12.65 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001425/1.273, allocations: 1.395 MB / 0.5327 GB, free: 11.25 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002306/1.273, allocations: 165.7 kB / 0.5329 GB, free: 11.08 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.743e-05/1.273, allocations: 19.94 kB / 0.5329 GB, free: 11.06 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.414e-05/1.273, allocations: 341.9 kB / 0.5332 GB, free: 10.72 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009488/1.274, allocations: 249.9 kB / 0.5334 GB, free: 10.48 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001113/1.275, allocations: 0.6622 MB / 0.5341 GB, free: 9.629 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001053/1.277, allocations: 348 kB / 0.5344 GB, free: 9.285 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.478e-06/1.277, allocations: 8 kB / 0.5344 GB, free: 9.277 MB / 346.7 MB Notification: Performance of matching and sorting (n=107) (initialization): time 0.003534/1.28, allocations: 1.307 MB / 0.5357 GB, free: 7.961 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.046e-05/1.28, allocations: 12 kB / 0.5357 GB, free: 7.949 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001485/1.28, allocations: 79.98 kB / 0.5358 GB, free: 7.871 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007789/1.281, allocations: 284.8 kB / 0.5361 GB, free: 7.59 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001004/1.282, allocations: 175.7 kB / 0.5362 GB, free: 7.418 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001226/1.283, allocations: 0.8875 MB / 0.5371 GB, free: 6.508 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001915/1.285, allocations: 131 kB / 0.5372 GB, free: 6.379 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001616/1.285, allocations: 67.98 kB / 0.5373 GB, free: 6.312 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.001351/1.287, allocations: 429.6 kB / 0.5377 GB, free: 5.883 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006912/1.288, allocations: 367.6 kB / 0.538 GB, free: 5.52 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005504/1.293, allocations: 1.353 MB / 0.5394 GB, free: 4.148 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.206e-05/1.293, allocations: 4 kB / 0.5394 GB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/1.293, allocations: 0 / 0.5394 GB, free: 4.145 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.243e-06/1.293, allocations: 4 kB / 0.5394 GB, free: 4.141 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005909/1.299, allocations: 2.268 MB / 0.5416 GB, free: 1.789 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0001359/1.299, allocations: 71.98 kB / 0.5417 GB, free: 1.719 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005774/1.3, allocations: 71.94 kB / 0.5417 GB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000689/1.301, allocations: 264.8 kB / 0.542 GB, free: 1.387 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.467e-05/1.301, allocations: 31.98 kB / 0.542 GB, free: 1.355 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001157/1.302, allocations: 0.8599 MB / 0.5428 GB, free: 484 kB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/1.302, allocations: 4.031 kB / 0.5429 GB, free: 480 kB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00352/1.305, allocations: 1.176 MB / 0.544 GB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001626/1.307, allocations: 472.4 kB / 0.5445 GB, free: 14.77 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007321/1.308, allocations: 16 kB / 0.5445 GB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001474/1.309, allocations: 47.95 kB / 0.5445 GB, free: 14.71 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002551/1.31, allocations: 63.88 kB / 0.5446 GB, free: 14.64 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000126/1.31, allocations: 39.98 kB / 0.5446 GB, free: 14.61 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.00426/1.314, allocations: 1.801 MB / 0.5464 GB, free: 12.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.253e-06/1.314, allocations: 0 / 0.5464 GB, free: 12.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.002662/1.317, allocations: 0.6283 MB / 0.547 GB, free: 12.17 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.002048/1.319, allocations: 0.87 MB / 0.5478 GB, free: 11.29 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.003253/1.322, allocations: 0.8852 MB / 0.5487 GB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/1.322, allocations: 0 / 0.5487 GB, free: 10.38 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001621/1.324, allocations: 0.4926 MB / 0.5492 GB, free: 9.863 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002783/1.327, allocations: 474.3 kB / 0.5496 GB, free: 9.395 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009834/1.336, allocations: 4.44 MB / 0.554 GB, free: 4.902 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001696/1.338, allocations: 1.663 MB / 0.5556 GB, free: 3.211 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.002006/1.34, allocations: 340.4 kB / 0.5559 GB, free: 2.875 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003752/1.341, allocations: 139.4 kB / 0.556 GB, free: 2.738 MB / 362.7 MB Notification: Performance of SimCode: time 1.122e-06/1.341, allocations: 3.938 kB / 0.5561 GB, free: 2.734 MB / 362.7 MB Notification: Performance of Templates: time 0.3474/1.688, allocations: 31.53 MB / 0.5868 GB, free: 84.23 MB / 362.7 MB