Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 178.5 kB / 16.71 MB, free: 4.957 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 225.7 MB / 243.2 MB, free: 8.445 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.000868/0.0008681, allocations: 97.77 kB / 294.4 MB, free: 9.48 MB / 234.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.3489/0.3489, allocations: 38.12 MB / 383.6 MB, free: 40.31 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003557/0.0003558, allocations: 8.219 kB / 453.5 MB, free: 8.754 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3169/0.3173, allocations: 59.14 MB / 0.5006 GB, free: 39.11 MB / 378.7 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01036/0.3277, allocations: 7.441 MB / 0.5079 GB, free: 36.68 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00754/0.3353, allocations: 3.964 MB / 0.5117 GB, free: 33.51 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001984/0.3374, allocations: 52.84 kB / 0.5118 GB, free: 33.49 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001348/0.3388, allocations: 237.8 kB / 0.512 GB, free: 33.37 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002677/0.3415, allocations: 0.5637 MB / 0.5126 GB, free: 33.07 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001584/0.3431, allocations: 402.5 kB / 0.513 GB, free: 32.83 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.002593/0.3457, allocations: 1.86 MB / 0.5148 GB, free: 32.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002411/0.3481, allocations: 1.173 MB / 0.5159 GB, free: 31.48 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001504/0.3496, allocations: 474.2 kB / 0.5164 GB, free: 31.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001635/0.3513, allocations: 0.5848 MB / 0.5169 GB, free: 31.06 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001716/0.3515, allocations: 43.69 kB / 0.517 GB, free: 31.06 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001006/0.3525, allocations: 272.4 kB / 0.5172 GB, free: 31 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005767/0.3531, allocations: 322.6 kB / 0.5175 GB, free: 30.88 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007123/0.3538, allocations: 0.5108 MB / 0.518 GB, free: 30.55 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002022/0.3559, allocations: 1.561 MB / 0.5196 GB, free: 30.11 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.546e-06/0.3559, allocations: 3.062 kB / 0.5196 GB, free: 30.11 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.154e-06/0.3559, allocations: 0 / 0.5196 GB, free: 30.11 MB / 378.7 MB Notification: Performance of Transformations before backend: time 1.403e-05/0.3559, allocations: 0 / 0.5196 GB, free: 30.11 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 226 * Number of variables: 226 Notification: Performance of Generate backend data structure: time 0.002531/0.3585, allocations: 1.227 MB / 0.5208 GB, free: 29.32 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.469e-05/0.3585, allocations: 7.812 kB / 0.5208 GB, free: 29.32 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006724/0.3592, allocations: 168.5 kB / 0.5209 GB, free: 29.26 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001233/0.3604, allocations: 0.7977 MB / 0.5217 GB, free: 28.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001108/0.3606, allocations: 62.62 kB / 0.5218 GB, free: 28.72 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000217/0.3608, allocations: 96.3 kB / 0.5219 GB, free: 28.69 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001665/0.3625, allocations: 1.153 MB / 0.523 GB, free: 28.14 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.311e-05/0.3625, allocations: 6.812 kB / 0.523 GB, free: 28.13 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.336e-05/0.3626, allocations: 36.41 kB / 0.523 GB, free: 28.11 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.921e-05/0.3627, allocations: 59.66 kB / 0.5231 GB, free: 28.1 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.3641, allocations: 0.9493 MB / 0.524 GB, free: 27.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005092/0.3692, allocations: 4.655 MB / 0.5286 GB, free: 24.59 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009598/0.3702, allocations: 0.6866 MB / 0.5292 GB, free: 24.22 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005166/0.3708, allocations: 348 kB / 0.5296 GB, free: 24.08 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.606e-05/0.3708, allocations: 6.5 kB / 0.5296 GB, free: 24.08 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.22e-05/0.3709, allocations: 53.3 kB / 0.5296 GB, free: 24.03 MB / 378.7 MB Notification: Performance of pre-optimization done (n=58): time 3.186e-06/0.3709, allocations: 0 / 0.5296 GB, free: 24.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=63): time 0.004114/0.375, allocations: 2.646 MB / 0.5322 GB, free: 22.52 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.525e-05/0.3751, allocations: 139.5 kB / 0.5323 GB, free: 22.36 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008279/0.3759, allocations: 0.6716 MB / 0.533 GB, free: 22.06 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.067e-05/0.3759, allocations: 40.7 kB / 0.533 GB, free: 22.02 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002787/0.3762, allocations: 486.9 kB / 0.5335 GB, free: 21.64 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001428/0.3764, allocations: 228.9 kB / 0.5337 GB, free: 21.46 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.32e-05/0.3764, allocations: 15.12 kB / 0.5337 GB, free: 21.45 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.3766, allocations: 391.6 kB / 0.5341 GB, free: 21.1 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000409/0.377, allocations: 274.4 kB / 0.5344 GB, free: 21.01 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004933/0.3775, allocations: 0.5257 MB / 0.5349 GB, free: 20.59 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003087/0.3806, allocations: 1.539 MB / 0.5364 GB, free: 19.77 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.819e-06/0.3806, allocations: 3.938 kB / 0.5364 GB, free: 19.76 MB / 378.7 MB Notification: Performance of matching and sorting (n=101) (initialization): time 0.002662/0.3833, allocations: 1.403 MB / 0.5378 GB, free: 19.18 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001432/0.3834, allocations: 315.3 kB / 0.5381 GB, free: 18.78 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.632e-05/0.3834, allocations: 13.88 kB / 0.5381 GB, free: 18.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001441/0.3849, allocations: 451.4 kB / 0.5385 GB, free: 18.67 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005212/0.3854, allocations: 151.5 kB / 0.5386 GB, free: 18.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007506/0.3929, allocations: 6.207 MB / 0.5447 GB, free: 14.54 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007598/0.3937, allocations: 47.86 kB / 0.5448 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.611e-05/0.3938, allocations: 33.92 kB / 0.5448 GB, free: 14.52 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.588e-06/0.3938, allocations: 5.969 kB / 0.5448 GB, free: 14.52 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002357/0.3962, allocations: 1.198 MB / 0.546 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.392e-05/0.3962, allocations: 10.22 kB / 0.546 GB, free: 14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001494/0.3977, allocations: 429.6 kB / 0.5464 GB, free: 13.9 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005195/0.3983, allocations: 145.5 kB / 0.5465 GB, free: 13.89 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007509/0.4058, allocations: 5.932 MB / 0.5523 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007604/0.4066, allocations: 38.72 kB / 0.5524 GB, free: 9.785 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.256e-05/0.4066, allocations: 35.42 kB / 0.5524 GB, free: 9.777 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.sm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 34 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,PI_i_q.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (72): * Single equations (assignments): 70 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(4,23)} Notification: Performance of prepare postOptimizeDAE: time 0.0006859/0.4073, allocations: 399.1 kB / 0.5528 GB, free: 9.48 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001544/0.4075, allocations: 78.45 kB / 0.5528 GB, free: 9.441 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001397/0.4089, allocations: 0.751 MB / 0.5536 GB, free: 9.109 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.889e-06/0.4089, allocations: 11.25 kB / 0.5536 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.4089, allocations: 2.203 kB / 0.5536 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4089, allocations: 4.016 kB / 0.5536 GB, free: 9.105 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002918/0.4119, allocations: 1.777 MB / 0.5553 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.06e-06/0.4119, allocations: 1.125 kB / 0.5553 GB, free: 8.188 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008065/0.4127, allocations: 149.3 kB / 0.5555 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001048/0.4128, allocations: 23.03 kB / 0.5555 GB, free: 8.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.833e-05/0.4129, allocations: 15.39 kB / 0.5555 GB, free: 8.152 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006858/0.4136, allocations: 1.29 MB / 0.5568 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4136, allocations: 1.719 kB / 0.5568 GB, free: 6.832 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001992/0.4156, allocations: 1.216 MB / 0.558 GB, free: 6.207 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004724/0.4161, allocations: 213.1 kB / 0.5582 GB, free: 6.039 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001057/0.4162, allocations: 18.78 kB / 0.5582 GB, free: 6.027 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004692/0.4167, allocations: 31.83 kB / 0.5582 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001394/0.4168, allocations: 39.39 kB / 0.5582 GB, free: 6.012 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.867e-05/0.4169, allocations: 21.94 kB / 0.5583 GB, free: 6.004 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007965/0.4177, allocations: 477.4 kB / 0.5587 GB, free: 5.793 MB / 378.7 MB Notification: Performance of sort global known variables: time 3.21e-07/0.4177, allocations: 4 kB / 0.5587 GB, free: 5.789 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001728/0.4194, allocations: 409.8 kB / 0.5591 GB, free: 5.746 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 6 (sm_ctrl.motor.phi_el,sm_ctrl.motor.w_el,sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],PI_i_q.I.y) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (67): * Single equations (assignments): 65 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.000321/0.4197, allocations: 156.3 kB / 0.5593 GB, free: 5.621 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003608/0.4234, allocations: 1.988 MB / 0.5612 GB, free: 4.602 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.017e-06/0.4234, allocations: 0 / 0.5612 GB, free: 4.602 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007179/0.4241, allocations: 454.2 kB / 0.5616 GB, free: 4.379 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001378/0.4255, allocations: 201.4 kB / 0.5618 GB, free: 4.316 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003787/0.4293, allocations: 2.604 MB / 0.5644 GB, free: 2.75 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007355/0.4301, allocations: 1.124 MB / 0.5655 GB, free: 1.965 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0008132/0.4309, allocations: 217.3 kB / 0.5657 GB, free: 1.859 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001818/0.4311, allocations: 63.55 kB / 0.5657 GB, free: 1.844 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.4311, allocations: 0 / 0.5657 GB, free: 1.844 MB / 378.7 MB Notification: Performance of Templates: time 0.03316/0.4642, allocations: 16.2 MB / 0.5816 GB, free: 2.797 MB / 394.7 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.makefile (rm -f PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & ./PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1)