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.Spice3BenchmarkRtlInverter.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.Spice3BenchmarkRtlInverter,fileNamePrefix="Modelica_3_2_1_cpp_Modelica_Electrical_Spice3_Examples_Spice3BenchmarkRtlInverter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.726/1.726, allocations: 171.2 MB / 186.7 MB, free: 1.047 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004738/0.000474, allocations: 8 kB / 233.3 MB, free: 2.965 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08286/0.08337, allocations: 38.77 MB / 272 MB, free: 12.11 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Spice3BenchmarkRtlInverter): time 0.007419/0.09085, allocations: 4.141 MB / 276.2 MB, free: 7.945 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.02119/0.1121, allocations: 9.043 MB / 285.2 MB, free: 14.88 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009106/0.1131, allocations: 11.94 kB / 285.2 MB, free: 14.87 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003323/0.1164, allocations: 0.5989 MB / 285.8 MB, free: 14.27 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.005163/0.1216, allocations: 0.845 MB / 286.7 MB, free: 13.42 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.1241, allocations: 407.4 kB / 287.1 MB, free: 13.02 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004323/0.1285, allocations: 1.134 MB / 288.2 MB, free: 11.88 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005131/0.129, allocations: 147.8 kB / 288.3 MB, free: 11.72 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005285/0.1296, allocations: 238.8 kB / 288.6 MB, free: 11.49 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006215/0.1302, allocations: 278.2 kB / 288.8 MB, free: 11.21 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.00011/0.1304, allocations: 16 kB / 288.9 MB, free: 11.2 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002997/0.1334, allocations: 0.6675 MB / 289.5 MB, free: 10.53 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001974/0.1336, allocations: 83.39 kB / 289.6 MB, free: 10.45 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000365/0.134, allocations: 193.1 kB / 289.8 MB, free: 10.25 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002031/0.136, allocations: 0.8764 MB / 290.7 MB, free: 9.375 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.327e-06/0.1361, allocations: 4 kB / 290.7 MB, free: 9.371 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.144e-06/0.1361, allocations: 0 / 290.7 MB, free: 9.371 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.14e-05/0.1361, allocations: 0 / 290.7 MB, free: 9.371 MB / 250.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 76 * Number of variables: 76 Notification: Performance of Generate backend data structure: time 0.00312/0.1392, allocations: 1.203 MB / 291.9 MB, free: 8.117 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.722e-05/0.1393, allocations: 8.031 kB / 291.9 MB, free: 8.109 MB / 250.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001308/0.1395, allocations: 62.53 kB / 292 MB, free: 8.039 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002413/0.1397, allocations: 118.6 kB / 292.1 MB, free: 7.922 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001831/0.1416, allocations: 0.7 MB / 292.8 MB, free: 7.168 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.559e-05/0.1416, allocations: 24.55 kB / 292.8 MB, free: 7.141 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.852e-05/0.1417, allocations: 24 kB / 292.8 MB, free: 7.117 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006548/0.1483, allocations: 325.3 kB / 293.1 MB, free: 6.801 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.956e-05/0.1484, allocations: 4 kB / 293.1 MB, free: 6.797 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.132e-05/0.1484, allocations: 8 kB / 293.1 MB, free: 6.789 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.693e-05/0.1485, allocations: 8 kB / 293.2 MB, free: 6.781 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001488/0.15, allocations: 298.1 kB / 293.4 MB, free: 6.484 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003783/0.1538, allocations: 1.376 MB / 294.8 MB, free: 5.02 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001396/0.1552, allocations: 322.8 kB / 295.1 MB, free: 4.695 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02377/0.179, allocations: 3.624 MB / 298.8 MB, free: 0.5273 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009366/0.18, allocations: 204.4 kB / 299 MB, free: 324 kB / 250.7 MB Notification: Performance of pre-optimization done (n=29): time 4.649e-06/0.18, allocations: 0 / 299 MB, free: 324 kB / 250.7 MB Notification: Performance of matching and sorting (n=29): time 0.249/0.4291, allocations: 0.8286 MB / 299.8 MB, free: 31.83 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.157e-05/0.4292, allocations: 58.11 kB / 299.8 MB, free: 31.77 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001519/0.4307, allocations: 0.8041 MB / 300.6 MB, free: 31.62 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 6.954e-05/0.4308, allocations: 30.39 kB / 300.7 MB, free: 31.59 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004361/0.4313, allocations: 430.5 kB / 301.1 MB, free: 31.4 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001441/0.4314, allocations: 100.9 kB / 301.2 MB, free: 31.35 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.655e-05/0.4315, allocations: 4.75 kB / 301.2 MB, free: 31.35 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.852e-05/0.4316, allocations: 328.2 kB / 301.5 MB, free: 31.04 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005167/0.4321, allocations: 121.6 kB / 301.6 MB, free: 31 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000555/0.4327, allocations: 237.3 kB / 301.9 MB, free: 30.83 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005772/0.4333, allocations: 156.1 kB / 302 MB, free: 30.78 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.4333, allocations: 1.312 kB / 302 MB, free: 30.78 MB / 250.7 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001503/0.4348, allocations: 459 kB / 302.5 MB, free: 30.6 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.736e-05/0.4349, allocations: 8.062 kB / 302.5 MB, free: 30.6 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.271e-05/0.4349, allocations: 32.19 kB / 302.5 MB, free: 30.6 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003233/0.4353, allocations: 59.88 kB / 302.6 MB, free: 30.57 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005705/0.4359, allocations: 81.67 kB / 302.7 MB, free: 30.56 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.438, allocations: 2.653 MB / 305.3 MB, free: 27.9 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006152/0.4386, allocations: 51.48 kB / 305.4 MB, free: 27.88 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.724e-05/0.4387, allocations: 20.41 kB / 305.4 MB, free: 27.87 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * Number of states: 0 () * Number of discrete variables: 7 ($PRE.VIN.counter,VIN.counter,$whenCondition1,$PRE.VIN.T0,VIN.T0,$PRE.VIN.counter2,VIN.counter2) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (36): * Single equations (assignments): 33 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003782/0.4391, allocations: 200.6 kB / 305.6 MB, free: 27.7 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001538/0.4393, allocations: 107.5 kB / 305.7 MB, free: 27.65 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001868/0.4411, allocations: 0.5155 MB / 306.2 MB, free: 27.46 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.4412, allocations: 6.469 kB / 306.2 MB, free: 27.46 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.75e-06/0.4412, allocations: 1.156 kB / 306.2 MB, free: 27.46 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4412, allocations: 1.312 kB / 306.2 MB, free: 27.46 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009096/0.4421, allocations: 0.5508 MB / 306.8 MB, free: 27.12 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.386e-05/0.4422, allocations: 30.59 kB / 306.8 MB, free: 27.12 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004508/0.4427, allocations: 51.91 kB / 306.8 MB, free: 27.12 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002432/0.4429, allocations: 56.34 kB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.044e-05/0.443, allocations: 10.06 kB / 306.9 MB, free: 27.09 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002005/0.445, allocations: 2.664 MB / 309.6 MB, free: 24.41 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.895e-06/0.4451, allocations: 0.5625 kB / 309.6 MB, free: 24.41 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002032/0.4471, allocations: 0.636 MB / 310.2 MB, free: 24.11 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002946/0.4474, allocations: 186.8 kB / 310.4 MB, free: 23.95 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001562/0.4476, allocations: 7.219 kB / 310.4 MB, free: 23.95 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004178/0.448, allocations: 16.33 kB / 310.4 MB, free: 23.95 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001329/0.4482, allocations: 32.45 kB / 310.4 MB, free: 23.94 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.19e-05/0.4482, allocations: 19.78 kB / 310.5 MB, free: 23.93 MB / 250.7 MB Notification: Performance of sorting global known variables: time 0.001029/0.4493, allocations: 0.5351 MB / 311 MB, free: 23.7 MB / 250.7 MB Notification: Performance of sort global known variables: time 7.11e-07/0.4493, allocations: 0 / 311 MB, free: 23.7 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0009626/0.4503, allocations: 239.7 kB / 311.2 MB, free: 23.67 MB / 250.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (Q1.vbe,Q1.vbc) * Number of discrete variables: 4 ($whenCondition1,VIN.T0,VIN.counter,VIN.counter2) * Number of discrete states: 2 (VIN.counter,VIN.counter2) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 2} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002999/0.4533, allocations: 1.414 MB / 312.6 MB, free: 22.82 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.001612/0.4549, allocations: 0.6051 MB / 313.2 MB, free: 22.45 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 4.147e-06/0.455, allocations: 0 / 313.2 MB, free: 22.45 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009195/0.4559, allocations: 445.2 kB / 313.7 MB, free: 22.14 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006354/0.4566, allocations: 92.64 kB / 313.8 MB, free: 22.09 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01312/0.4697, allocations: 4.859 MB / 318.6 MB, free: 19.44 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004117/0.4702, allocations: 0.9737 MB / 319.6 MB, free: 18.73 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005187/0.4707, allocations: 330.9 kB / 319.9 MB, free: 18.46 MB / 250.7 MB Notification: Performance of SimCode: time 1.082e-06/0.4707, allocations: 0 / 319.9 MB, free: 18.46 MB / 250.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.962/3.433, allocations: 20.42 MB / 340.3 MB, free: 15.61 MB / 266.7 MB