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.Graetz.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.Graetz,fileNamePrefix="Modelica_3_2_2_Modelica_Electrical_Spice3_Examples_Graetz",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadModel(Modelica): time 1.868/1.868, allocations: 194.9 MB / 211.1 MB, free: 7.578 MB / 170.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003198/0.00032, allocations: 8 kB / 264 MB, free: 2.512 MB / 218.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2854/0.2858, allocations: 44.5 MB / 308.6 MB, free: 12.65 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Spice3.Examples.Graetz): time 0.006378/0.2922, allocations: 4.243 MB / 312.8 MB, free: 8.395 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0105/0.3027, allocations: 5.667 MB / 318.5 MB, free: 2.711 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005947/0.3034, allocations: 35.75 kB / 318.5 MB, free: 2.676 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001555/0.305, allocations: 417.9 kB / 318.9 MB, free: 2.266 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002525/0.3075, allocations: 0.7047 MB / 319.6 MB, free: 1.559 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001189/0.3087, allocations: 307.2 kB / 319.9 MB, free: 1.258 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.004359/0.3131, allocations: 1.806 MB / 321.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003665/0.3135, allocations: 151.5 kB / 321.9 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005289/0.314, allocations: 298.5 kB / 322.2 MB, free: 15 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005248/0.3145, allocations: 302 kB / 322.5 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 8.656e-05/0.3146, allocations: 16 kB / 322.5 MB, free: 14.69 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001446/0.3161, allocations: 431.5 kB / 322.9 MB, free: 14.26 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001267/0.3162, allocations: 91.33 kB / 323 MB, free: 14.17 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002307/0.3165, allocations: 217.1 kB / 323.2 MB, free: 13.95 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001384/0.3179, allocations: 0.9037 MB / 324.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.3179, allocations: 4 kB / 324.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3179, allocations: 0 / 324.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.816e-06/0.3179, allocations: 0 / 324.1 MB, free: 13.04 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.002504/0.3204, allocations: 1.297 MB / 325.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.596e-05/0.3205, allocations: 8.031 kB / 325.4 MB, free: 11.68 MB / 266.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.617e-05/0.3206, allocations: 66.48 kB / 325.5 MB, free: 11.6 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001969/0.3208, allocations: 126.4 kB / 325.6 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001666/0.3225, allocations: 0.8008 MB / 326.4 MB, free: 10.62 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.849e-05/0.3225, allocations: 20.38 kB / 326.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.856e-05/0.3226, allocations: 24 kB / 326.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007959/0.3234, allocations: 310.6 kB / 326.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.326e-05/0.3235, allocations: 0 / 326.7 MB, free: 10.26 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.785e-05/0.3235, allocations: 8 kB / 326.7 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.518e-05/0.3235, allocations: 11.94 kB / 326.8 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006742/0.3242, allocations: 233.8 kB / 327 MB, free: 10.01 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002467/0.3267, allocations: 1.134 MB / 328.1 MB, free: 8.82 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006105/0.3273, allocations: 250.3 kB / 328.4 MB, free: 8.566 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.00127/0.3286, allocations: 0.7632 MB / 329.1 MB, free: 7.656 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.317e-05/0.3287, allocations: 34.56 kB / 329.2 MB, free: 7.613 MB / 266.7 MB Notification: Performance of pre-optimization done (n=38): time 2.785e-06/0.3287, allocations: 4 kB / 329.2 MB, free: 7.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=39): time 0.004738/0.3334, allocations: 1.957 MB / 331.1 MB, free: 5.461 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.643e-05/0.3335, allocations: 118.8 kB / 331.2 MB, free: 5.32 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001503/0.335, allocations: 0.9145 MB / 332.2 MB, free: 4.398 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.24e-05/0.3351, allocations: 33.7 kB / 332.2 MB, free: 4.359 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004157/0.3355, allocations: 365.5 kB / 332.5 MB, free: 4 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000146/0.3357, allocations: 122.1 kB / 332.7 MB, free: 3.879 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.723e-05/0.3357, allocations: 8 kB / 332.7 MB, free: 3.871 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3359, allocations: 325.9 kB / 333 MB, free: 3.547 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004126/0.3363, allocations: 124.6 kB / 333.1 MB, free: 3.422 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004549/0.3368, allocations: 167.6 kB / 333.3 MB, free: 3.25 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000492/0.3373, allocations: 178.8 kB / 333.4 MB, free: 3.07 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3373, allocations: 0 / 333.4 MB, free: 3.07 MB / 266.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.001417/0.3387, allocations: 0.5524 MB / 334 MB, free: 2.5 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.295e-05/0.3388, allocations: 37.69 kB / 334 MB, free: 2.457 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.572e-05/0.3389, allocations: 16.03 kB / 334.1 MB, free: 2.441 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000332/0.3392, allocations: 81.56 kB / 334.1 MB, free: 2.355 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003829/0.3396, allocations: 47.91 kB / 334.2 MB, free: 2.309 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003339/0.343, allocations: 2.997 MB / 337.2 MB, free: 15.04 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005186/0.3435, allocations: 23.97 kB / 337.2 MB, free: 15.02 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.255e-05/0.3436, allocations: 16.12 kB / 337.2 MB, free: 15 MB / 282.7 MB Warning: Assuming fixed start value for the following 4 variables: D2.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D4.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D3.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real D1.c2.m_tBrkdwnV:VARIABLE(unit = "V" fixed = true final = true ) type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (29): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0005676/0.3442, allocations: 273.7 kB / 337.5 MB, free: 14.72 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001857/0.3444, allocations: 114.6 kB / 337.6 MB, free: 14.61 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002173/0.3465, allocations: 0.6842 MB / 338.3 MB, free: 13.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.3466, allocations: 7.984 kB / 338.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.938e-06/0.3466, allocations: 4 kB / 338.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.259e-06/0.3466, allocations: 0 / 338.3 MB, free: 13.89 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001045/0.3477, allocations: 0.616 MB / 338.9 MB, free: 13.23 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.832e-05/0.3477, allocations: 11.98 kB / 338.9 MB, free: 13.21 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.3481, allocations: 35.97 kB / 339 MB, free: 13.18 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002977/0.3484, allocations: 69.67 kB / 339 MB, free: 13.11 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.627e-05/0.3484, allocations: 12 kB / 339 MB, free: 13.09 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003176/0.3516, allocations: 3.012 MB / 342 MB, free: 9.812 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.888e-06/0.3516, allocations: 8.062 kB / 342.1 MB, free: 9.805 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002068/0.3537, allocations: 0.8627 MB / 342.9 MB, free: 8.914 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005383/0.3543, allocations: 279.8 kB / 343.2 MB, free: 8.621 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001791/0.3545, allocations: 11.95 kB / 343.2 MB, free: 8.609 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004742/0.355, allocations: 12 kB / 343.2 MB, free: 8.598 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001173/0.3551, allocations: 35.89 kB / 343.2 MB, free: 8.562 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.781e-05/0.3552, allocations: 23.98 kB / 343.3 MB, free: 8.539 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00115/0.3563, allocations: 0.6217 MB / 343.9 MB, free: 7.914 MB / 282.7 MB Notification: Performance of sort global known variables: time 4.01e-07/0.3563, allocations: 4 kB / 343.9 MB, free: 7.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001025/0.3574, allocations: 219.9 kB / 344.1 MB, free: 7.695 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (D1.pin,D4.n.v) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 15 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * 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%) 4,(1,100.0%) 4} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002949/0.3603, allocations: 1.589 MB / 345.7 MB, free: 6.066 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001658/0.362, allocations: 0.7884 MB / 346.5 MB, free: 5.215 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.895e-06/0.362, allocations: 0 / 346.5 MB, free: 5.215 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001043/0.3631, allocations: 0.6217 MB / 347.1 MB, free: 4.531 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005919/0.3637, allocations: 100.7 kB / 347.2 MB, free: 4.434 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004197/0.3679, allocations: 2.299 MB / 349.5 MB, free: 2.07 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007242/0.3687, allocations: 1.027 MB / 350.5 MB, free: 1.016 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005375/0.3692, allocations: 85.66 kB / 350.6 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004781/0.3697, allocations: 287.3 kB / 350.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of SimCode: time 9.51e-07/0.3697, allocations: 0 / 350.9 MB, free: 0.6445 MB / 282.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05137/0.4211, allocations: 15.23 MB / 366.1 MB, free: 1.434 MB / 298.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001905/0.4213, allocations: 196 kB / 366.3 MB, free: 1.188 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 3.382/3.804, allocations: 0 / 366.3 MB, free: 1.188 MB / 298.7 MB