Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 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(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002351/0.002351, allocations: 110.6 kB / 17.28 MB, free: 6.059 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003467/0.003468, allocations: 197.3 kB / 18.21 MB, free: 5.145 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.802/2.802, allocations: 222.9 MB / 241.9 MB, free: 13.69 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.4131/0.4131, allocations: 38.01 MB / 330 MB, free: 8.75 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002685/0.002685, allocations: 65.64 kB / 398.9 MB, free: 34.36 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1852, allocations: 58.06 MB / 457 MB, free: 8.379 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.01501/0.2002, allocations: 8.206 MB / 465.2 MB, free: 132 kB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007793/0.2081, allocations: 3.304 MB / 468.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001454/0.2096, allocations: 59.62 kB / 468.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001639/0.2112, allocations: 330.3 kB / 468.9 MB, free: 12.43 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002387/0.2137, allocations: 0.5717 MB / 469.5 MB, free: 11.86 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001357/0.215, allocations: 394.7 kB / 469.8 MB, free: 11.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002407/0.2174, allocations: 1.489 MB / 471.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001978/0.2194, allocations: 1.211 MB / 472.5 MB, free: 8.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001014/0.2205, allocations: 0.5721 MB / 473.1 MB, free: 8.168 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001067/0.2216, allocations: 0.6655 MB / 473.8 MB, free: 7.5 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001837/0.2218, allocations: 112 kB / 473.9 MB, free: 7.391 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00073/0.2225, allocations: 359.5 kB / 474.2 MB, free: 7.039 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004549/0.223, allocations: 410.9 kB / 474.6 MB, free: 6.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0007229/0.2237, allocations: 0.5754 MB / 475.2 MB, free: 6.059 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001776/0.2255, allocations: 1.329 MB / 476.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.59e-06/0.2255, allocations: 0 / 476.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.2255, allocations: 0 / 476.5 MB, free: 4.727 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.313e-05/0.2256, allocations: 0 / 476.5 MB, free: 4.727 MB / 350.1 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.003526/0.2291, allocations: 1.421 MB / 478 MB, free: 3.254 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.767e-05/0.2291, allocations: 11.89 kB / 478 MB, free: 3.242 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009693/0.2301, allocations: 163.5 kB / 478.1 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001837/0.232, allocations: 0.7895 MB / 478.9 MB, free: 2.25 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.065e-05/0.2321, allocations: 69.98 kB / 479 MB, free: 2.184 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000251/0.2323, allocations: 91.91 kB / 479.1 MB, free: 2.094 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002585/0.2349, allocations: 1.149 MB / 480.2 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.063e-05/0.235, allocations: 7.938 kB / 480.2 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001171/0.2351, allocations: 36 kB / 480.3 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.2353, allocations: 65.95 kB / 480.3 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002248/0.2375, allocations: 0.9407 MB / 481.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008422/0.246, allocations: 4.636 MB / 485.9 MB, free: 10.97 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001864/0.2479, allocations: 0.6803 MB / 486.6 MB, free: 10.24 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009762/0.2489, allocations: 341.7 kB / 486.9 MB, free: 9.902 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.04e-05/0.249, allocations: 12.56 kB / 486.9 MB, free: 9.891 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.384e-05/0.249, allocations: 39.12 kB / 487 MB, free: 9.844 MB / 366.1 MB Notification: Performance of pre-optimization done (n=58): time 4.128e-06/0.249, allocations: 0 / 487 MB, free: 9.844 MB / 366.1 MB Notification: Performance of matching and sorting (n=62): time 0.007906/0.257, allocations: 2.335 MB / 489.3 MB, free: 7.434 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001128/0.2571, allocations: 145 kB / 489.5 MB, free: 7.262 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001344/0.2585, allocations: 0.6802 MB / 490.1 MB, free: 6.57 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.941e-05/0.2586, allocations: 33.7 kB / 490.2 MB, free: 6.531 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005163/0.2591, allocations: 494.8 kB / 490.7 MB, free: 6.039 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002815/0.2594, allocations: 220.8 kB / 490.9 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003367/0.2597, allocations: 142.6 kB / 491 MB, free: 5.676 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002634/0.26, allocations: 398.8 kB / 491.4 MB, free: 5.277 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008104/0.2609, allocations: 280.6 kB / 491.7 MB, free: 5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001059/0.2619, allocations: 0.516 MB / 492.2 MB, free: 4.379 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005989/0.2679, allocations: 1.513 MB / 493.7 MB, free: 2.746 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.748e-06/0.268, allocations: 7.938 kB / 493.7 MB, free: 2.738 MB / 366.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.005099/0.2731, allocations: 1.375 MB / 495.1 MB, free: 1.328 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.2731, allocations: 11.94 kB / 495.1 MB, free: 1.316 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.006e-05/0.2732, allocations: 8 kB / 495.1 MB, free: 1.309 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00258/0.2758, allocations: 443.3 kB / 495.5 MB, free: 0.8711 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009931/0.2768, allocations: 143.8 kB / 495.7 MB, free: 0.7305 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01607/0.2929, allocations: 6.705 MB / 0.4906 GB, free: 9.746 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.294, allocations: 39.97 kB / 0.4906 GB, free: 9.707 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001463/0.2942, allocations: 36 kB / 0.4907 GB, free: 9.672 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.sm_ctrl.rotor.w = 0.0. Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.001475/0.2957, allocations: 0.513 MB / 0.4912 GB, free: 9.156 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.00101/0.2967, allocations: 0.5004 MB / 0.4917 GB, free: 8.551 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.005855/0.3026, allocations: 1.482 MB / 0.4931 GB, free: 6.949 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.251e-05/0.3027, allocations: 7.938 kB / 0.4931 GB, free: 6.941 MB / 382.1 MB Notification: Performance of matching and sorting (n=100) (initialization_lambda0): time 0.004485/0.3072, allocations: 1.297 MB / 0.4944 GB, free: 5.609 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.721e-05/0.3072, allocations: 8 kB / 0.4944 GB, free: 5.602 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.603e-05/0.3073, allocations: 8 kB / 0.4944 GB, free: 5.594 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002549/0.3098, allocations: 421.6 kB / 0.4948 GB, free: 5.176 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008807/0.3107, allocations: 147.7 kB / 0.495 GB, free: 5.031 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008563/0.3193, allocations: 6.488 MB / 0.5013 GB, free: 14.26 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000708/0.32, allocations: 35.89 kB / 0.5013 GB, free: 14.22 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.637e-05/0.3201, allocations: 32 kB / 0.5014 GB, free: 14.19 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization_lambda0 system: $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 (71): * Single equations (assignments): 69 * 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.0002794/0.3204, allocations: 243.9 kB / 0.5016 GB, free: 13.95 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001505/0.3206, allocations: 75.06 kB / 0.5017 GB, free: 13.87 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00134/0.3219, allocations: 0.7302 MB / 0.5024 GB, free: 13.13 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3219, allocations: 4 kB / 0.5024 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.017e-06/0.3219, allocations: 4 kB / 0.5024 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.496e-06/0.3219, allocations: 3.984 kB / 0.5024 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002774/0.3247, allocations: 1.766 MB / 0.5041 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.298e-06/0.3247, allocations: 0 / 0.5041 GB, free: 11.28 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007221/0.3255, allocations: 139.8 kB / 0.5042 GB, free: 11.14 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001066/0.3256, allocations: 24.84 kB / 0.5043 GB, free: 11.11 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.838e-05/0.3257, allocations: 16 kB / 0.5043 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001002/0.3267, allocations: 1.386 MB / 0.5056 GB, free: 9.574 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.649e-06/0.3267, allocations: 8.016 kB / 0.5056 GB, free: 9.566 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00175/0.3284, allocations: 1.205 MB / 0.5068 GB, free: 8.324 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00032/0.3288, allocations: 212.1 kB / 0.507 GB, free: 8.098 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001009/0.3289, allocations: 15.98 kB / 0.507 GB, free: 8.082 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004336/0.3293, allocations: 23.98 kB / 0.5071 GB, free: 8.059 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001051/0.3294, allocations: 44.44 kB / 0.5071 GB, free: 8.016 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.62e-05/0.3295, allocations: 20 kB / 0.5071 GB, free: 7.996 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005791/0.3301, allocations: 479 kB / 0.5076 GB, free: 7.531 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3301, allocations: 0 / 0.5076 GB, free: 7.531 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001491/0.3316, allocations: 419.9 kB / 0.508 GB, free: 7.121 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (sm_ctrl.motor.i_s[1],sm_ctrl.motor.i_s[2],sm_ctrl.motor.i_s[3],loadInertia.w,frictTorq.phi,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 (66): * Single equations (assignments): 64 * 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.0003142/0.3319, allocations: 141.3 kB / 0.5081 GB, free: 6.977 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.00391/0.3358, allocations: 2.097 MB / 0.5102 GB, free: 4.832 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.3e-06/0.3359, allocations: 4 kB / 0.5102 GB, free: 4.828 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006672/0.3365, allocations: 442 kB / 0.5106 GB, free: 4.387 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001225/0.3378, allocations: 233.3 kB / 0.5108 GB, free: 4.164 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003994/0.3418, allocations: 2.544 MB / 0.5133 GB, free: 1.578 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007636/0.3426, allocations: 1.116 MB / 0.5144 GB, free: 444 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002497/0.3428, allocations: 67.42 kB / 0.5144 GB, free: 376 kB / 398.1 MB Notification: Performance of SimCode: time 6.52e-07/0.3428, allocations: 0 / 0.5144 GB, free: 376 kB / 398.1 MB Notification: Performance of Templates: time 0.2303/0.5732, allocations: 18.97 MB / 0.533 GB, free: 62.09 MB / 398.1 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)