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.Nor.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.Nor,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Nor",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 2.033/2.033, allocations: 194.9 MB / 211.1 MB, free: 8.566 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003559/0.0003559, allocations: 8 kB / 264.1 MB, free: 3.492 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3129/0.3133, allocations: 44.52 MB / 308.6 MB, free: 12.67 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1896/0.503, allocations: 97.95 MB / 406.5 MB, free: 10.56 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002895/0.5033, allocations: 67.97 kB / 406.6 MB, free: 10.5 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.653/1.156, allocations: 124.1 MB / 0.5182 GB, free: 9.066 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.816e-06/1.156, allocations: 0 / 0.5182 GB, free: 9.066 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.267e-05/1.157, allocations: 44 kB / 0.5183 GB, free: 9.023 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: 149 * Number of variables: 149 Notification: Performance of Generate backend data structure: time 0.0102/1.167, allocations: 3.318 MB / 0.5215 GB, free: 5.637 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.386e-05/1.167, allocations: 12.03 kB / 0.5215 GB, free: 5.625 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004275/1.167, allocations: 94.52 kB / 0.5216 GB, free: 5.523 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008953/1.168, allocations: 395.3 kB / 0.522 GB, free: 5.133 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007018/1.175, allocations: 2.279 MB / 0.5242 GB, free: 2.781 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.036e-05/1.175, allocations: 29 kB / 0.5242 GB, free: 2.75 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002545/1.176, allocations: 55.89 kB / 0.5243 GB, free: 2.695 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002999/1.179, allocations: 0.9002 MB / 0.5252 GB, free: 1.762 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.546e-05/1.179, allocations: 4 kB / 0.5252 GB, free: 1.758 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/1.179, allocations: 20 kB / 0.5252 GB, free: 1.738 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.06e-05/1.179, allocations: 19.98 kB / 0.5252 GB, free: 1.719 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003404/1.182, allocations: 0.9216 MB / 0.5261 GB, free: 0.7891 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009792/1.192, allocations: 3.026 MB / 0.5291 GB, free: 13.7 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003364/1.196, allocations: 0.8613 MB / 0.5299 GB, free: 12.82 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.3387/1.534, allocations: 35.87 MB / 0.5649 GB, free: 72.18 MB / 394.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001835/1.536, allocations: 0.6224 MB / 0.5655 GB, free: 72.12 MB / 394.7 MB Notification: Performance of pre-optimization done (n=96): time 4.408e-06/1.536, allocations: 4.312 kB / 0.5656 GB, free: 72.12 MB / 394.7 MB Notification: Performance of matching and sorting (n=99): time 0.02055/1.557, allocations: 6.083 MB / 0.5715 GB, free: 69.87 MB / 394.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001108/1.557, allocations: 279.5 kB / 0.5718 GB, free: 69.55 MB / 394.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003918/1.561, allocations: 2.262 MB / 0.574 GB, free: 69.29 MB / 394.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002274/1.561, allocations: 40.73 kB / 0.574 GB, free: 69.26 MB / 394.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001354/1.562, allocations: 1.3 MB / 0.5753 GB, free: 69.11 MB / 394.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004203/1.563, allocations: 333.5 kB / 0.5756 GB, free: 68.95 MB / 394.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000101/1.563, allocations: 22.12 kB / 0.5756 GB, free: 68.95 MB / 394.7 MB Notification: Performance of setup shared object (initialization): time 9.01e-05/1.563, allocations: 347.2 kB / 0.5759 GB, free: 68.64 MB / 394.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/1.565, allocations: 0.5213 MB / 0.5765 GB, free: 68.64 MB / 394.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002308/1.568, allocations: 0.7533 MB / 0.5772 GB, free: 68.4 MB / 394.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002226/1.57, allocations: 0.5773 MB / 0.5778 GB, free: 68.39 MB / 394.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.773e-06/1.57, allocations: 0 / 0.5778 GB, free: 68.39 MB / 394.7 MB Notification: Performance of matching and sorting (n=133) (initialization): time 0.006635/1.577, allocations: 2.09 MB / 0.5798 GB, free: 67.89 MB / 394.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.95e-05/1.577, allocations: 6.562 kB / 0.5798 GB, free: 67.89 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002393/1.577, allocations: 121.9 kB / 0.5799 GB, free: 67.89 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001029/1.578, allocations: 265.7 kB / 0.5802 GB, free: 67.81 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001654/1.58, allocations: 232.5 kB / 0.5804 GB, free: 67.81 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009262/1.589, allocations: 13.32 MB / 0.5934 GB, free: 55.29 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002593/1.592, allocations: 130.8 kB / 0.5935 GB, free: 55.29 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002236/1.592, allocations: 59.78 kB / 0.5936 GB, free: 55.29 MB / 394.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.001362/1.593, allocations: 429.8 kB / 0.594 GB, free: 55.18 MB / 394.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006361/1.594, allocations: 377.5 kB / 0.5944 GB, free: 54.98 MB / 394.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008688/1.603, allocations: 2.374 MB / 0.5967 GB, free: 54.6 MB / 394.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.092e-05/1.603, allocations: 13.2 kB / 0.5967 GB, free: 54.59 MB / 394.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.049e-05/1.603, allocations: 3.094 kB / 0.5967 GB, free: 54.59 MB / 394.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.475e-05/1.603, allocations: 3.844 kB / 0.5967 GB, free: 54.59 MB / 394.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00305/1.606, allocations: 1.548 MB / 0.5982 GB, free: 54.36 MB / 394.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 0.0002627/1.606, allocations: 117 kB / 0.5983 GB, free: 54.36 MB / 394.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001398/1.607, allocations: 169.8 kB / 0.5985 GB, free: 54.36 MB / 394.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001086/1.609, allocations: 264.5 kB / 0.5987 GB, free: 54.28 MB / 394.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002488/1.609, allocations: 43.67 kB / 0.5988 GB, free: 54.28 MB / 394.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009324/1.618, allocations: 13.32 MB / 0.6118 GB, free: 41.75 MB / 394.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.896e-06/1.618, allocations: 3.062 kB / 0.6118 GB, free: 41.75 MB / 394.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009132/1.627, allocations: 2.723 MB / 0.6144 GB, free: 41.16 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001672/1.629, allocations: 0.4926 MB / 0.6149 GB, free: 40.88 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0009498/1.63, allocations: 21.75 kB / 0.6149 GB, free: 40.88 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003417/1.634, allocations: 116.2 kB / 0.6151 GB, free: 40.88 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008424/1.634, allocations: 145.5 kB / 0.6152 GB, free: 40.88 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002325/1.635, allocations: 52.09 kB / 0.6152 GB, free: 40.88 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.005976/1.641, allocations: 1.756 MB / 0.617 GB, free: 40.7 MB / 394.7 MB Notification: Performance of sort global known variables: time 1.533e-06/1.641, allocations: 3.531 kB / 0.617 GB, free: 40.7 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.004254/1.645, allocations: 0.709 MB / 0.6177 GB, free: 40.7 MB / 394.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.01812/1.663, allocations: 4.073 MB / 0.6216 GB, free: 39.61 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.00989/1.673, allocations: 2.637 MB / 0.6242 GB, free: 38.35 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 8.967e-06/1.673, allocations: 6.188 kB / 0.6242 GB, free: 38.35 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.004202/1.677, allocations: 2.008 MB / 0.6262 GB, free: 37.11 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002922/1.68, allocations: 479.8 kB / 0.6266 GB, free: 37.07 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0527/1.733, allocations: 22.05 MB / 0.6482 GB, free: 22.65 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001271/1.734, allocations: 1.723 MB / 0.6498 GB, free: 21.31 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.002185/1.737, allocations: 345.1 kB / 0.6502 GB, free: 21.07 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001948/1.739, allocations: 1.146 MB / 0.6513 GB, free: 20.02 MB / 394.7 MB Notification: Performance of SimCode: time 1.553e-06/1.739, allocations: 0 / 0.6513 GB, free: 20.02 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4969/2.236, allocations: 62.52 MB / 0.7123 GB, free: 97.29 MB / 426.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002053/2.236, allocations: 183 kB / 0.7125 GB, free: 97.06 MB / 426.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.495/8.731, allocations: 3.812 kB / 0.7125 GB, free: 97.06 MB / 426.7 MB