Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") translateModel(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="Time|asm_ctrl.motor.i_meas.1.|asm_ctrl.motor.i_meas.2.|asm_ctrl.motor.slip|asm_ctrl.motor.tau_el|asm_ctrl.motor.w_el",fileNamePrefix="PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007543/0.0007544, allocations: 91.88 kB / 16.65 MB, free: 6.586 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.0008667/0.0008668, allocations: 182 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.215/1.215, allocations: 223.3 MB / 241.6 MB, free: 104 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1565/0.1565, allocations: 38.09 MB / 330.8 MB, free: 8.734 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003171/0.0003169, allocations: 8 kB / 400.7 MB, free: 34.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08908/0.08941, allocations: 59.16 MB / 459.9 MB, free: 7.059 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.008606/0.09806, allocations: 7.982 MB / 467.9 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.00766/0.1058, allocations: 5.155 MB / 473 MB, free: 9.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001092/0.1069, allocations: 55.62 kB / 473.1 MB, free: 9.809 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00835/0.1153, allocations: 4.68 MB / 477.8 MB, free: 5.121 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001361/0.1166, allocations: 473.9 kB / 478.2 MB, free: 4.656 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001211/0.1179, allocations: 468.8 kB / 478.7 MB, free: 4.199 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003584/0.1215, allocations: 3.006 MB / 481.7 MB, free: 1.184 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001655/0.1231, allocations: 1.156 MB / 482.8 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007908/0.1239, allocations: 0.5211 MB / 483.4 MB, free: 15.45 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009566/0.1249, allocations: 0.7393 MB / 484.1 MB, free: 14.71 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001573/0.1251, allocations: 52 kB / 484.2 MB, free: 14.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002728/0.1254, allocations: 63.94 kB / 484.2 MB, free: 14.59 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003597/0.1257, allocations: 370.9 kB / 484.6 MB, free: 14.23 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006154/0.1264, allocations: 0.5495 MB / 485.1 MB, free: 13.67 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001262/0.1276, allocations: 1.502 MB / 486.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.447e-06/0.1276, allocations: 0 / 486.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1277, allocations: 0 / 486.6 MB, free: 12.16 MB / 366.1 MB Notification: Performance of Transformations before backend: time 4.52e-05/0.1277, allocations: 0 / 486.6 MB, free: 12.16 MB / 366.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.002674/0.1304, allocations: 1.23 MB / 487.9 MB, free: 10.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.457e-05/0.1304, allocations: 12.03 kB / 487.9 MB, free: 10.87 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004159/0.1309, allocations: 127.5 kB / 488 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001559/0.1324, allocations: 0.8825 MB / 488.9 MB, free: 9.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.771e-05/0.1325, allocations: 66 kB / 488.9 MB, free: 9.758 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001609/0.1326, allocations: 91.98 kB / 489 MB, free: 9.668 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001786/0.1344, allocations: 1.23 MB / 490.3 MB, free: 8.383 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.901e-05/0.1345, allocations: 7.906 kB / 490.3 MB, free: 8.375 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.924e-05/0.1346, allocations: 35.98 kB / 490.3 MB, free: 8.34 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002106/0.1348, allocations: 77.95 kB / 490.4 MB, free: 8.266 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.1364, allocations: 1.015 MB / 491.4 MB, free: 7.25 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005779/0.1422, allocations: 4.452 MB / 495.9 MB, free: 2.648 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001344/0.1435, allocations: 0.8911 MB / 496.7 MB, free: 1.707 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006836/0.1442, allocations: 454.2 kB / 497.2 MB, free: 1.258 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.235e-05/0.1443, allocations: 13.33 kB / 497.2 MB, free: 1.242 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.333e-05/0.1443, allocations: 43.12 kB / 497.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 2.795e-06/0.1443, allocations: 0 / 497.2 MB, free: 1.191 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006224/0.1506, allocations: 3.326 MB / 0.4888 GB, free: 13.71 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.145e-05/0.1507, allocations: 145 kB / 0.489 GB, free: 13.53 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008062/0.1515, allocations: 0.6881 MB / 0.4896 GB, free: 12.83 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 6.553e-05/0.1516, allocations: 37.7 kB / 0.4897 GB, free: 12.79 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000324/0.1519, allocations: 479.4 kB / 0.4901 GB, free: 12.31 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002229/0.1521, allocations: 260.2 kB / 0.4904 GB, free: 12.05 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001295/0.1523, allocations: 81.67 kB / 0.4905 GB, free: 11.97 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.1524, allocations: 334 kB / 0.4908 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000624/0.153, allocations: 377.8 kB / 0.4911 GB, free: 11.27 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007912/0.1538, allocations: 0.6017 MB / 0.4917 GB, free: 10.57 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007615/0.1615, allocations: 2.414 MB / 0.4941 GB, free: 8.051 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.987e-06/0.1615, allocations: 0 / 0.4941 GB, free: 8.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.00569/0.1672, allocations: 2.059 MB / 0.4961 GB, free: 5.957 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001761/0.1674, allocations: 279.9 kB / 0.4964 GB, free: 5.59 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.546e-05/0.1674, allocations: 15.88 kB / 0.4964 GB, free: 5.574 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004531/0.172, allocations: 1.031 MB / 0.4974 GB, free: 4.535 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005183/0.1725, allocations: 139.7 kB / 0.4975 GB, free: 4.398 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.2101/0.3826, allocations: 9.222 MB / 0.5065 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007047/0.3833, allocations: 41.83 kB / 0.5066 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.683e-05/0.3834, allocations: 43 kB / 0.5066 GB, free: 39.8 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.768e-06/0.3834, allocations: 3.375 kB / 0.5066 GB, free: 39.8 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.005464/0.3889, allocations: 1.85 MB / 0.5084 GB, free: 39.67 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.636e-05/0.3889, allocations: 7.766 kB / 0.5084 GB, free: 39.67 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004454/0.3934, allocations: 0.9993 MB / 0.5094 GB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005186/0.3939, allocations: 138.7 kB / 0.5095 GB, free: 39.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/0.4073, allocations: 8.974 MB / 0.5183 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007454/0.408, allocations: 34.05 kB / 0.5183 GB, free: 35.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.376e-05/0.4081, allocations: 39.55 kB / 0.5184 GB, free: 35.89 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 sytem: $DER.asm_ctrl.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 29 * 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 (65): * Single equations (assignments): 63 * 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 {(6,35)} Notification: Performance of prepare postOptimizeDAE: time 0.0006329/0.4088, allocations: 408.6 kB / 0.5188 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001474/0.4089, allocations: 94.39 kB / 0.5188 GB, free: 35.61 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00203/0.411, allocations: 1.257 MB / 0.5201 GB, free: 34.96 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.486e-05/0.411, allocations: 15.33 kB / 0.5201 GB, free: 34.96 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.699e-06/0.411, allocations: 2.562 kB / 0.5201 GB, free: 34.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.779e-06/0.411, allocations: 3.953 kB / 0.5201 GB, free: 34.96 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003451/0.4145, allocations: 2.414 MB / 0.5225 GB, free: 33.71 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.08e-06/0.4145, allocations: 3.312 kB / 0.5225 GB, free: 33.71 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007825/0.4153, allocations: 164.7 kB / 0.5226 GB, free: 33.7 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004404/0.4157, allocations: 157.9 kB / 0.5228 GB, free: 33.64 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.147e-05/0.4158, allocations: 23.47 kB / 0.5228 GB, free: 33.63 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002696/0.4185, allocations: 5.402 MB / 0.5281 GB, free: 28.34 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.877e-06/0.4185, allocations: 10.06 kB / 0.5281 GB, free: 28.34 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002404/0.4209, allocations: 1.869 MB / 0.5299 GB, free: 27.32 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003268/0.4213, allocations: 233.1 kB / 0.5301 GB, free: 27.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001385/0.4214, allocations: 26.12 kB / 0.5301 GB, free: 27.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005129/0.422, allocations: 35.22 kB / 0.5302 GB, free: 27.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001269/0.4221, allocations: 58.91 kB / 0.5302 GB, free: 27.11 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.136e-05/0.4221, allocations: 25.48 kB / 0.5303 GB, free: 27.11 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006017/0.4228, allocations: 482.5 kB / 0.5307 GB, free: 26.89 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.4228, allocations: 0 / 0.5307 GB, free: 26.89 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001733/0.4245, allocations: 460.4 kB / 0.5312 GB, free: 26.84 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 9 (asm_ctrl.motor.i[3],asm_ctrl.motor.psi_s[1],asm_ctrl.motor.psi_s[2],asm_ctrl.motor.psi_rd[1],asm_ctrl.motor.psi_rq[1],asm_ctrl.motor.phiRotorflux,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 (79): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (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.0001596/0.4247, allocations: 131.5 kB / 0.5313 GB, free: 26.74 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004508/0.4292, allocations: 2.605 MB / 0.5338 GB, free: 25.43 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.358e-06/0.4292, allocations: 4.953 kB / 0.5338 GB, free: 25.43 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001012/0.4302, allocations: 0.9255 MB / 0.5347 GB, free: 24.76 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.4315, allocations: 239.5 kB / 0.535 GB, free: 24.64 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003381/0.4349, allocations: 2.98 MB / 0.5379 GB, free: 22.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006548/0.4355, allocations: 1.175 MB / 0.539 GB, free: 21.64 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0006759/0.4362, allocations: 207.7 kB / 0.5392 GB, free: 21.49 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002019/0.4364, allocations: 63.42 kB / 0.5393 GB, free: 21.43 MB / 382.1 MB Notification: Performance of SimCode: time 4.8e-07/0.4364, allocations: 0 / 0.5393 GB, free: 21.43 MB / 382.1 MB Notification: Performance of Templates: time 0.03018/0.4666, allocations: 23.13 MB / 0.5619 GB, free: 14.49 MB / 398.1 MB make -j1 -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.makefile Environment - environmentSimulation: (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.sim & ./PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: