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.Nor.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.Nor,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.569/1.569, allocations: 171.2 MB / 186.8 MB, free: 1.035 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000345/0.0003452, allocations: 16 kB / 233.3 MB, free: 2.918 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07893/0.07931, allocations: 38.76 MB / 272.1 MB, free: 12.08 MB / 234.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3668/0.4461, allocations: 94.13 MB / 366.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002686/0.4464, allocations: 72.45 kB / 366.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.7466/1.193, allocations: 126.1 MB / 492.4 MB, free: 69.74 MB / 346.7 MB Notification: Performance of FrontEnd: time 2.064e-06/1.193, allocations: 0 / 492.4 MB, free: 69.74 MB / 346.7 MB Notification: Performance of Transformations before backend: time 5.335e-05/1.193, allocations: 44 kB / 492.5 MB, free: 69.7 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.007236/1.2, allocations: 3.314 MB / 495.8 MB, free: 66.32 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.688e-05/1.201, allocations: 8.031 kB / 495.8 MB, free: 66.31 MB / 346.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002361/1.201, allocations: 102.5 kB / 495.9 MB, free: 66.2 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004593/1.201, allocations: 380.3 kB / 496.3 MB, free: 65.82 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005063/1.206, allocations: 2.283 MB / 498.6 MB, free: 63.47 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.236e-05/1.206, allocations: 44.97 kB / 498.6 MB, free: 63.43 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/1.207, allocations: 48 kB / 498.6 MB, free: 63.38 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002339/1.209, allocations: 0.8963 MB / 499.5 MB, free: 62.45 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.186e-05/1.209, allocations: 0 / 499.5 MB, free: 62.45 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001154/1.209, allocations: 24 kB / 499.6 MB, free: 62.42 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.621e-05/1.209, allocations: 19.98 kB / 499.6 MB, free: 62.4 MB / 346.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002796/1.212, allocations: 0.9178 MB / 0.4888 GB, free: 61.48 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007034/1.219, allocations: 3.046 MB / 0.4917 GB, free: 58.37 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002701/1.222, allocations: 0.8572 MB / 0.4926 GB, free: 57.5 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0436/1.265, allocations: 35.87 MB / 0.5276 GB, free: 16.49 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001783/1.267, allocations: 0.6231 MB / 0.5282 GB, free: 15.86 MB / 346.7 MB Notification: Performance of pre-optimization done (n=96): time 3.546e-06/1.267, allocations: 0 / 0.5282 GB, free: 15.86 MB / 346.7 MB Notification: Performance of matching and sorting (n=99): time 0.01953/1.287, allocations: 6.092 MB / 0.5342 GB, free: 9.426 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.234e-05/1.287, allocations: 282 kB / 0.5344 GB, free: 9.086 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/1.291, allocations: 2.256 MB / 0.5366 GB, free: 6.82 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001989/1.291, allocations: 41.7 kB / 0.5367 GB, free: 6.773 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001094/1.292, allocations: 1.051 MB / 0.5377 GB, free: 5.719 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003663/1.292, allocations: 339.1 kB / 0.538 GB, free: 5.383 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001013/1.293, allocations: 20 kB / 0.5381 GB, free: 5.363 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 8.901e-05/1.293, allocations: 350.8 kB / 0.5384 GB, free: 5.012 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002119/1.295, allocations: 0.5254 MB / 0.5389 GB, free: 4.488 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002236/1.297, allocations: 0.7592 MB / 0.5396 GB, free: 3.641 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002149/1.299, allocations: 0.5729 MB / 0.5402 GB, free: 3.07 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.242e-06/1.299, allocations: 4 kB / 0.5402 GB, free: 3.066 MB / 346.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.005682/1.305, allocations: 1.784 MB / 0.5419 GB, free: 1.207 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.617e-05/1.305, allocations: 13.98 kB / 0.542 GB, free: 1.195 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002245/1.305, allocations: 124 kB / 0.5421 GB, free: 1.074 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/1.306, allocations: 264.5 kB / 0.5423 GB, free: 0.7852 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001568/1.308, allocations: 231.7 kB / 0.5426 GB, free: 0.5586 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01289/1.321, allocations: 13.33 MB / 0.5556 GB, free: 1.895 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002641/1.323, allocations: 128 kB / 0.5557 GB, free: 1.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002013/1.324, allocations: 59.98 kB / 0.5558 GB, free: 1.711 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 21 * Number of states: 0 () * Number of discrete variables: 21 ($PRE.v.counter,v.counter,$PRE.vin2.counter,vin2.counter,$PRE.vin1.counter,vin1.counter,$whenCondition3,$whenCondition2,$whenCondition1,$PRE.vin1.T0,vin1.T0,$PRE.vin1.counter2,vin1.counter2,$PRE.vin2.T0,vin2.T0,$PRE.vin2.counter2,vin2.counter2,$PRE.v.T0,v.T0,$PRE.v.counter2,v.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (97): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001525/1.325, allocations: 433.6 kB / 0.5562 GB, free: 1.277 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007138/1.326, allocations: 367.6 kB / 0.5565 GB, free: 0.9141 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.2522/1.578, allocations: 2.368 MB / 0.5588 GB, free: 85.43 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.095e-05/1.578, allocations: 9.844 kB / 0.5588 GB, free: 85.43 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.145e-05/1.578, allocations: 5.047 kB / 0.5588 GB, free: 85.43 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.942e-05/1.578, allocations: 5.5 kB / 0.5588 GB, free: 85.43 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003818/1.582, allocations: 1.543 MB / 0.5604 GB, free: 85.19 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0003092/1.582, allocations: 117.2 kB / 0.5605 GB, free: 85.19 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001442/1.584, allocations: 167.5 kB / 0.5606 GB, free: 85.19 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001121/1.585, allocations: 263.3 kB / 0.5609 GB, free: 85.11 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000211/1.585, allocations: 45.08 kB / 0.5609 GB, free: 85.11 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009713/1.595, allocations: 13.33 MB / 0.5739 GB, free: 72.69 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/1.595, allocations: 1.25 kB / 0.5739 GB, free: 72.69 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009656/1.605, allocations: 2.723 MB / 0.5766 GB, free: 72.3 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001531/1.606, allocations: 0.4965 MB / 0.5771 GB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006421/1.607, allocations: 18.25 kB / 0.5771 GB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001976/1.609, allocations: 120.5 kB / 0.5772 GB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005713/1.609, allocations: 145.5 kB / 0.5774 GB, free: 72.08 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001636/1.61, allocations: 49.55 kB / 0.5774 GB, free: 72.08 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.004068/1.614, allocations: 1.749 MB / 0.5791 GB, free: 71.9 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.71e-07/1.614, allocations: 0 / 0.5791 GB, free: 71.9 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.003008/1.617, allocations: 0.7103 MB / 0.5798 GB, free: 71.9 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 8 (mp1.Dinternal,mp1.Sinternal,mp2.Dinternal,mp2.Sinternal,mn1.Dinternal,mn1.Sinternal,mn2.Dinternal,mn2.Sinternal) * Number of discrete variables: 12 ($whenCondition3,$whenCondition2,$whenCondition1,vin1.T0,vin1.counter,vin1.counter2,vin2.T0,vin2.counter,vin2.counter2,v.T0,v.counter,v.counter2) * Number of discrete states: 6 (vin1.counter,vin2.counter,v.counter,vin1.counter2,vin2.counter2,v.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 4 * When equations: 9 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 10 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 10 {(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 2,(1,100.0%) 3,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.01098/1.628, allocations: 4.095 MB / 0.5838 GB, free: 70.79 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.006321/1.634, allocations: 2.629 MB / 0.5864 GB, free: 69.55 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 7.444e-06/1.634, allocations: 0 / 0.5864 GB, free: 69.55 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.003784/1.638, allocations: 2.017 MB / 0.5883 GB, free: 68.3 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002758/1.641, allocations: 479.6 kB / 0.5888 GB, free: 68.27 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05006/1.691, allocations: 22.11 MB / 0.6104 GB, free: 55.54 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001303/1.692, allocations: 1.725 MB / 0.6121 GB, free: 54.77 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001842/1.694, allocations: 1.147 MB / 0.6132 GB, free: 54.76 MB / 362.7 MB Notification: Performance of SimCode: time 1.052e-06/1.694, allocations: 0 / 0.6132 GB, free: 54.76 MB / 362.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 4.497/6.192, allocations: 155.3 MB / 0.7648 GB, free: 56.06 MB / 378.7 MB