Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/./OMCompiler/build/lib/omlibrary/ --ompython_omhome=/usr Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar.conf.json Using package ModelicaServices with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/ModelicaServices 3.2.1/package.mo) Using package Complex with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Complex 3.2.1.mo) Using package Modelica with version 3.2.1 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork@2/OpenModelica/OMCompiler/build/lib/omlibrary/Modelica 3.2.1/package.mo) Running command: translateModel(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar,tolerance=1e-06,outputFormat="mat",numberOfIntervals=2000,variableFilter="time|voltageSource.plug_p.reference.gamma|voltageSource.voltageSource.2..pin_p.reference.gamma|voltageSource.voltageSource.3..pin_p.reference.gamma",fileNamePrefix="Modelica_3.2.1_cpp_Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar") Notification: Performance of loadModel(Modelica): time 1.683/1.683, allocations: 171.2 MB / 186.7 MB, free: 1.133 MB / 154.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003611/0.0003613, allocations: 8 kB / 233.2 MB, free: 3.062 MB / 186.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07148/0.07187, allocations: 38.77 MB / 271.9 MB, free: 12.21 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.QuasiStationary.MultiPhase.Examples.BalancingStar): time 0.01261/0.08453, allocations: 8.615 MB / 280.5 MB, free: 3.559 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.005738/0.09032, allocations: 2.278 MB / 282.8 MB, free: 1.273 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/0.09216, allocations: 67.81 kB / 282.9 MB, free: 1.207 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001824/0.09401, allocations: 481.4 kB / 283.4 MB, free: 0.7344 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002663/0.0967, allocations: 418.8 kB / 283.8 MB, free: 332 kB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003226/0.09996, allocations: 0.8882 MB / 284.7 MB, free: 15.43 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.005683/0.1057, allocations: 3.045 MB / 287.7 MB, free: 12.38 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.02638/0.1321, allocations: 11.49 MB / 299.2 MB, free: 0.7891 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2441/0.3762, allocations: 1.711 MB / 300.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003631/0.3799, allocations: 1.973 MB / 302.9 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001203/0.3811, allocations: 319.1 kB / 303.2 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001883/0.383, allocations: 443.3 kB / 303.6 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0009385/0.384, allocations: 0.7687 MB / 304.4 MB, free: 14.97 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001401/0.3854, allocations: 0.9999 MB / 305.4 MB, free: 14.94 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01008/0.3955, allocations: 8.632 MB / 314 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.18e-06/0.3956, allocations: 0 / 314 MB, free: 11.42 MB / 250.7 MB Notification: Performance of FrontEnd: time 3.264e-06/0.3956, allocations: 0 / 314 MB, free: 11.42 MB / 250.7 MB Notification: Performance of Transformations before backend: time 0.0002538/0.3958, allocations: 0 / 314 MB, free: 11.42 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: 1355 * Number of variables: 1355 Notification: Performance of Generate backend data structure: time 0.01573/0.4116, allocations: 4.92 MB / 318.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.194e-05/0.4116, allocations: 7.5 kB / 318.9 MB, free: 8.918 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002154/0.4138, allocations: 0.4926 MB / 319.4 MB, free: 8.672 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005749/0.4196, allocations: 2.52 MB / 322 MB, free: 7.98 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003658/0.42, allocations: 392.3 kB / 322.3 MB, free: 7.969 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001607/0.4216, allocations: 0.504 MB / 322.8 MB, free: 7.965 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01912/0.4408, allocations: 7.249 MB / 330.1 MB, free: 4.633 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001561/0.441, allocations: 7.906 kB / 330.1 MB, free: 4.625 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009918/0.442, allocations: 212 kB / 330.3 MB, free: 4.418 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.16e-05/0.4421, allocations: 132 kB / 330.4 MB, free: 4.289 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01427/0.4564, allocations: 5.361 MB / 335.8 MB, free: 14.92 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05555/0.512, allocations: 23.77 MB / 359.6 MB, free: 6.906 MB / 282.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001295/0.5133, allocations: 401.6 kB / 360 MB, free: 6.473 MB / 282.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.584e-05/0.5135, allocations: 12.88 kB / 360 MB, free: 6.461 MB / 282.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.099e-05/0.5135, allocations: 34.75 kB / 360 MB, free: 6.418 MB / 282.7 MB Notification: Performance of pre-optimization done (n=24): time 5.959e-06/0.5136, allocations: 0 / 360 MB, free: 6.418 MB / 282.7 MB Notification: Performance of matching and sorting (n=24): time 0.002579/0.5162, allocations: 0.6668 MB / 360.7 MB, free: 5.734 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001091/0.5163, allocations: 114.8 kB / 360.8 MB, free: 5.598 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005976/0.5223, allocations: 1.662 MB / 362.4 MB, free: 3.922 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 9.167e-05/0.5225, allocations: 25.7 kB / 362.5 MB, free: 3.891 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.003405/0.5259, allocations: 2.298 MB / 364.8 MB, free: 1.578 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003018/0.5262, allocations: 128 kB / 364.9 MB, free: 1.457 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002058/0.5265, allocations: 36 kB / 364.9 MB, free: 1.422 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0004336/0.5269, allocations: 390.8 kB / 365.3 MB, free: 1.031 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002489/0.5294, allocations: 0.6362 MB / 366 MB, free: 404 kB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004551/0.534, allocations: 1.919 MB / 367.9 MB, free: 13.85 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004/0.5381, allocations: 1.181 MB / 369.1 MB, free: 12.71 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.986e-05/0.5382, allocations: 19.95 kB / 369.1 MB, free: 12.7 MB / 298.7 MB Notification: Performance of matching and sorting (n=241) (initialization): time 0.009617/0.5478, allocations: 2.414 MB / 371.5 MB, free: 10.51 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.92e-05/0.548, allocations: 27.94 kB / 371.5 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001207/0.5481, allocations: 48 kB / 371.6 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000161/0.5483, allocations: 64 kB / 371.6 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003256/0.5516, allocations: 467.2 kB / 372.1 MB, free: 9.914 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0001695/0.5518, allocations: 91.64 kB / 372.2 MB, free: 9.824 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003627/0.5554, allocations: 269.4 kB / 372.4 MB, free: 9.559 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005648/0.556, allocations: 120 kB / 372.5 MB, free: 9.441 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 210 * 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 (240): * Single equations (assignments): 239 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.007155/0.5632, allocations: 1.91 MB / 374.5 MB, free: 7.52 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006398/0.5639, allocations: 126.4 kB / 374.6 MB, free: 7.395 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002028/0.5659, allocations: 0.493 MB / 375.1 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.001161/0.5671, allocations: 333.4 kB / 375.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.083e-05/0.5672, allocations: 0 / 375.4 MB, free: 6.562 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.848e-05/0.5672, allocations: 11.98 kB / 375.4 MB, free: 6.551 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02229/0.5895, allocations: 4.275 MB / 379.7 MB, free: 2.145 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.823e-05/0.5896, allocations: 4.094 kB / 379.7 MB, free: 2.141 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008972/0.5906, allocations: 59.84 kB / 379.7 MB, free: 2.082 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.066e-05/0.5907, allocations: 8 kB / 379.8 MB, free: 2.074 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.033e-05/0.5907, allocations: 12 kB / 379.8 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-05/0.5907, allocations: 11.98 kB / 379.8 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.168e-06/0.5908, allocations: 7.938 kB / 379.8 MB, free: 2.043 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001709/0.5925, allocations: 1.082 MB / 380.9 MB, free: 0.8867 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005229/0.593, allocations: 226.5 kB / 381.1 MB, free: 0.6484 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001662/0.5932, allocations: 15.98 kB / 381.1 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000649/0.5939, allocations: 23.97 kB / 381.1 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.092e-05/0.594, allocations: 35.81 kB / 381.2 MB, free: 0.5742 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.862e-05/0.594, allocations: 16 kB / 381.2 MB, free: 0.5586 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.002506/0.5965, allocations: 1.105 MB / 382.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.015e-06/0.5966, allocations: 0 / 382.3 MB, free: 15.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.004038/0.6006, allocations: 0.9895 MB / 383.3 MB, free: 14.46 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 3 (voltageSource.voltageSource[3].pin_p.reference.gamma,voltageSource.voltageSource[2].pin_p.reference.gamma,voltageSource.voltageSource[1].pin_p.reference.gamma) * 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): 24 * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003987/0.6011, allocations: 154.7 kB / 383.4 MB, free: 14.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002884/0.604, allocations: 1.305 MB / 384.7 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.927e-06/0.604, allocations: 1.938 kB / 384.7 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004225/0.6045, allocations: 196.8 kB / 384.9 MB, free: 12.81 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002167/0.6066, allocations: 357.9 kB / 385.3 MB, free: 12.47 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01789/0.6246, allocations: 8.352 MB / 393.6 MB, free: 4.016 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006528/0.6311, allocations: 3.39 MB / 397 MB, free: 0.5938 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003138/0.6315, allocations: 95.44 kB / 397.1 MB, free: 0.5 MB / 314.7 MB Notification: Performance of SimCode: time 1.771e-06/0.6315, allocations: 3.938 kB / 397.1 MB, free: 0.4961 MB / 314.7 MB Notification: Performance of Templates: time 0.3395/0.971, allocations: 39.18 MB / 436.3 MB, free: 110 MB / 346.7 MB