Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers.conf.json Using package ModelicaServices with version 1.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 1.0/package.mo) Using package Modelica with version 3.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.1/package.mo) Running command: translateModel(Modelica.Electrical.Analog.Examples.CompareTransformers,tolerance=1e-06,outputFormat="empty",numberOfIntervals=100000,variableFilter="",fileNamePrefix="Modelica_3.1_cpp_Modelica.Electrical.Analog.Examples.CompareTransformers") Notification: Performance of loadModel(Modelica): time 1.012/1.012, allocations: 111.1 MB / 126.7 MB, free: 6.121 MB / 106.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002591/0.0002593, allocations: 4 kB / 158.3 MB, free: 15.21 MB / 138.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.04476/0.04504, allocations: 25.16 MB / 183.4 MB, free: 6.004 MB / 154.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Analog.Examples.CompareTransformers): time 0.005005/0.05009, allocations: 3.24 MB / 186.7 MB, free: 2.754 MB / 154.7 MB Notification: Performance of NFInst.instExpressions: time 0.001704/0.05183, allocations: 0.8113 MB / 187.5 MB, free: 1.941 MB / 154.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002595/0.05211, allocations: 11.94 kB / 187.5 MB, free: 1.93 MB / 154.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.05227, allocations: 71.48 kB / 187.6 MB, free: 1.859 MB / 154.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0005187/0.0528, allocations: 219.4 kB / 187.8 MB, free: 1.645 MB / 154.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003476/0.05316, allocations: 103.8 kB / 187.9 MB, free: 1.543 MB / 154.7 MB Notification: Performance of NFFlatten.flatten: time 0.0006667/0.05384, allocations: 467.5 kB / 188.3 MB, free: 1.086 MB / 154.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003308/0.05419, allocations: 162.7 kB / 188.5 MB, free: 0.9219 MB / 154.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003297/0.05454, allocations: 215.2 kB / 188.7 MB, free: 0.7109 MB / 154.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003727/0.05492, allocations: 254.9 kB / 188.9 MB, free: 472 kB / 154.7 MB Notification: Performance of NFPackage.collectConstants: time 8.072e-05/0.05502, allocations: 28 kB / 189 MB, free: 444 kB / 154.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001013/0.05513, allocations: 35.94 kB / 189 MB, free: 408 kB / 154.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001138/0.05526, allocations: 95.59 kB / 189.1 MB, free: 312 kB / 154.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001562/0.05543, allocations: 129.4 kB / 189.2 MB, free: 176 kB / 154.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0006174/0.05606, allocations: 470.8 kB / 189.7 MB, free: 15.71 MB / 170.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.696e-06/0.05608, allocations: 0 / 189.7 MB, free: 15.71 MB / 170.7 MB Notification: Performance of FrontEnd: time 1.773e-06/0.0561, allocations: 4 kB / 189.7 MB, free: 15.71 MB / 170.7 MB Notification: Performance of Transformations before backend: time 9.301e-06/0.05611, allocations: 0 / 189.7 MB, free: 15.71 MB / 170.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 122 * Number of variables: 122 Notification: Performance of Generate backend data structure: time 0.001497/0.05762, allocations: 0.7869 MB / 190.5 MB, free: 14.87 MB / 170.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.967e-05/0.05767, allocations: 12.03 kB / 190.5 MB, free: 14.86 MB / 170.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001384/0.05782, allocations: 59.34 kB / 190.5 MB, free: 14.8 MB / 170.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006127/0.05845, allocations: 354.6 kB / 190.9 MB, free: 14.41 MB / 170.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.44e-05/0.05851, allocations: 37 kB / 190.9 MB, free: 14.38 MB / 170.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001006/0.05862, allocations: 48 kB / 191 MB, free: 14.33 MB / 170.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001071/0.05971, allocations: 471 kB / 191.4 MB, free: 13.85 MB / 170.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.222e-05/0.05975, allocations: 3.938 kB / 191.4 MB, free: 13.85 MB / 170.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.071e-05/0.05982, allocations: 20 kB / 191.5 MB, free: 13.83 MB / 170.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.092e-05/0.05985, allocations: 15.95 kB / 191.5 MB, free: 13.81 MB / 170.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009212/0.06079, allocations: 331.8 kB / 191.8 MB, free: 13.48 MB / 170.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003599/0.0644, allocations: 1.697 MB / 193.5 MB, free: 11.68 MB / 170.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006163/0.06505, allocations: 259.1 kB / 193.7 MB, free: 11.41 MB / 170.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.971e-05/0.0651, allocations: 7.984 kB / 193.8 MB, free: 11.41 MB / 170.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.703e-05/0.06515, allocations: 42.5 kB / 193.8 MB, free: 11.36 MB / 170.7 MB Notification: Performance of pre-optimization done (n=30): time 3.501e-06/0.06517, allocations: 0 / 193.8 MB, free: 11.36 MB / 170.7 MB Notification: Performance of matching and sorting (n=31): time 0.002454/0.06763, allocations: 0.9532 MB / 194.8 MB, free: 10.32 MB / 170.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.896e-05/0.06773, allocations: 89.06 kB / 194.8 MB, free: 10.22 MB / 170.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006097/0.06835, allocations: 389.6 kB / 195.2 MB, free: 9.828 MB / 170.7 MB Notification: Performance of collectPreVariables (initialization): time 4.28e-05/0.06841, allocations: 33.7 kB / 195.3 MB, free: 9.789 MB / 170.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002667/0.06869, allocations: 325.9 kB / 195.6 MB, free: 9.469 MB / 170.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001196/0.06882, allocations: 118.3 kB / 195.7 MB, free: 9.352 MB / 170.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.35e-05/0.06886, allocations: 8 kB / 195.7 MB, free: 9.344 MB / 170.7 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.06904, allocations: 326.8 kB / 196 MB, free: 9.016 MB / 170.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003018/0.06935, allocations: 100.8 kB / 196.1 MB, free: 8.918 MB / 170.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003802/0.06975, allocations: 190.8 kB / 196.3 MB, free: 8.695 MB / 170.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003644/0.07013, allocations: 128.6 kB / 196.4 MB, free: 8.57 MB / 170.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.049e-06/0.07015, allocations: 0 / 196.4 MB, free: 8.57 MB / 170.7 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001132/0.07129, allocations: 417.1 kB / 196.8 MB, free: 8.152 MB / 170.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.892e-05/0.07134, allocations: 4 kB / 196.8 MB, free: 8.148 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.97e-06/0.07136, allocations: 7.938 kB / 196.8 MB, free: 8.141 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003965/0.07177, allocations: 69.66 kB / 196.9 MB, free: 8.066 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004016/0.07219, allocations: 79.97 kB / 197 MB, free: 7.988 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003376/0.07558, allocations: 2.862 MB / 199.9 MB, free: 4.859 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003877/0.076, allocations: 31.86 kB / 199.9 MB, free: 4.828 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.575e-05/0.07605, allocations: 12 kB / 199.9 MB, free: 4.816 MB / 170.7 MB Warning: Assuming fixed start value for the following 3 variables: inductor22.i:VARIABLE(unit = "A" fixed = true ) "Current flowing from pin p to pin n" type: Real basicTransformer.i2:VARIABLE(unit = "A" fixed = true ) "Current flowing from pos. to neg. pin of the right port" type: Real basicTransformer.i1:VARIABLE(unit = "A" fixed = true ) "Current flowing from pos. to neg. pin of the left port" type: Real Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * 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 (44): * Single equations (assignments): 42 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003866/0.07645, allocations: 174.8 kB / 200.1 MB, free: 4.637 MB / 170.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001329/0.07659, allocations: 39.53 kB / 200.1 MB, free: 4.598 MB / 170.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.402e-05/0.07669, allocations: 43.52 kB / 200.1 MB, free: 4.559 MB / 170.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.57e-06/0.07671, allocations: 4 kB / 200.1 MB, free: 4.555 MB / 170.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.275e-05/0.07673, allocations: 7.953 kB / 200.2 MB, free: 4.547 MB / 170.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.425e-06/0.07675, allocations: 0 / 200.2 MB, free: 4.547 MB / 170.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001946/0.0787, allocations: 0.9361 MB / 201.1 MB, free: 3.547 MB / 170.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.635e-06/0.07873, allocations: 0 / 201.1 MB, free: 3.547 MB / 170.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002463/0.07898, allocations: 39.92 kB / 201.1 MB, free: 3.508 MB / 170.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003607/0.07936, allocations: 77.64 kB / 201.2 MB, free: 3.426 MB / 170.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.903e-05/0.07941, allocations: 8 kB / 201.2 MB, free: 3.418 MB / 170.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003262/0.08268, allocations: 2.861 MB / 204.1 MB, free: 296 kB / 170.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.075e-06/0.08271, allocations: 3.984 kB / 204.1 MB, free: 292 kB / 170.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1164/0.1991, allocations: 0.5926 MB / 204.7 MB, free: 23.13 MB / 170.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002191/0.1994, allocations: 134.7 kB / 204.8 MB, free: 23.04 MB / 170.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.036e-05/0.1994, allocations: 5.734 kB / 204.8 MB, free: 23.04 MB / 170.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000443/0.1999, allocations: 37.03 kB / 204.8 MB, free: 23.04 MB / 170.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.723e-05/0.2, allocations: 25.22 kB / 204.9 MB, free: 23.04 MB / 170.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.001e-05/0.2001, allocations: 10.23 kB / 204.9 MB, free: 23.04 MB / 170.7 MB Notification: Performance of sorting global known variables: time 0.0004164/0.2005, allocations: 272.9 kB / 205.1 MB, free: 22.95 MB / 170.7 MB Notification: Performance of sort global known variables: time 2.22e-06/0.2005, allocations: 3.469 kB / 205.2 MB, free: 22.95 MB / 170.7 MB Notification: Performance of remove unused functions: time 0.0007921/0.2013, allocations: 119.2 kB / 205.3 MB, free: 22.95 MB / 170.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (inductor22.i,basicTransformer.i1,basicTransformer.i2) * 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 (25): * Single equations (assignments): 23 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001354/0.2014, allocations: 113.7 kB / 205.4 MB, free: 22.86 MB / 170.7 MB Notification: Performance of simCode: created initialization part: time 0.001171/0.2026, allocations: 0.5181 MB / 205.9 MB, free: 22.64 MB / 170.7 MB Notification: Performance of simCode: created event and clocks part: time 4.885e-06/0.2027, allocations: 3.312 kB / 205.9 MB, free: 22.64 MB / 170.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007974/0.2035, allocations: 385.6 kB / 206.3 MB, free: 22.42 MB / 170.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007568/0.2042, allocations: 97.19 kB / 206.4 MB, free: 22.42 MB / 170.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001863/0.2061, allocations: 1.189 MB / 207.6 MB, free: 21.75 MB / 170.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003624/0.2065, allocations: 0.853 MB / 208.4 MB, free: 21.05 MB / 170.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001377/0.2067, allocations: 31.89 kB / 208.4 MB, free: 21.04 MB / 170.7 MB Notification: Performance of SimCode: time 2.315e-06/0.2067, allocations: 0 / 208.4 MB, free: 21.04 MB / 170.7 MB Notification: Performance of Templates: time 0.01296/0.2197, allocations: 8.557 MB / 217 MB, free: 17.7 MB / 170.7 MB