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: "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0006833/0.0006834, allocations: 87.52 kB / 16.65 MB, free: 6.535 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.0009587/0.0009588, allocations: 176.3 kB / 17.56 MB, free: 6.18 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.241/1.241, allocations: 223.2 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1663/0.1663, allocations: 38.09 MB / 330.8 MB, free: 8.766 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002812/0.0002812, allocations: 9.031 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09486/0.09515, allocations: 59.17 MB / 460 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv): time 0.007912/0.1031, allocations: 7.975 MB / 468 MB, free: 14.97 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.008031/0.1112, allocations: 5.159 MB / 473.1 MB, free: 9.789 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008008/0.112, allocations: 59.62 kB / 473.2 MB, free: 9.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007097/0.1191, allocations: 4.676 MB / 477.9 MB, free: 5.047 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001073/0.1202, allocations: 481.7 kB / 478.3 MB, free: 4.574 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009316/0.1211, allocations: 454.7 kB / 478.8 MB, free: 4.133 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002748/0.1239, allocations: 3.014 MB / 481.8 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00131/0.1252, allocations: 1.16 MB / 482.9 MB, free: 15.89 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006178/0.1259, allocations: 0.525 MB / 483.5 MB, free: 15.37 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000858/0.1267, allocations: 0.7354 MB / 484.2 MB, free: 14.63 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001062/0.1268, allocations: 51.98 kB / 484.3 MB, free: 14.58 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002007/0.127, allocations: 67.86 kB / 484.3 MB, free: 14.51 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003451/0.1274, allocations: 366.9 kB / 484.7 MB, free: 14.15 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005101/0.1279, allocations: 0.5495 MB / 485.2 MB, free: 13.59 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00114/0.1291, allocations: 1.499 MB / 486.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.1291, allocations: 0 / 486.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.1291, allocations: 0 / 486.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.243e-05/0.1291, allocations: 0 / 486.7 MB, free: 12.09 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.002457/0.1316, allocations: 1.234 MB / 488 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.1316, allocations: 8.031 kB / 488 MB, free: 10.8 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001851/0.1318, allocations: 143.8 kB / 488.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003746/0.1322, allocations: 131.5 kB / 488.2 MB, free: 10.52 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001588/0.1338, allocations: 0.8823 MB / 489.1 MB, free: 9.594 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.664e-05/0.1339, allocations: 66 kB / 489.2 MB, free: 9.531 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001591/0.134, allocations: 87.98 kB / 489.3 MB, free: 9.445 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001814/0.1358, allocations: 1.23 MB / 490.5 MB, free: 8.16 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.229e-05/0.1359, allocations: 7.906 kB / 490.5 MB, free: 8.152 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.869e-05/0.136, allocations: 36 kB / 490.5 MB, free: 8.117 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002013/0.1362, allocations: 73.95 kB / 490.6 MB, free: 8.047 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001609/0.1378, allocations: 1.015 MB / 491.6 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005729/0.1435, allocations: 4.441 MB / 496.1 MB, free: 2.441 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0013/0.1449, allocations: 0.9065 MB / 497 MB, free: 1.484 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006599/0.1455, allocations: 446.5 kB / 497.4 MB, free: 1.043 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.325e-05/0.1456, allocations: 17.33 kB / 497.4 MB, free: 1.023 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.982e-05/0.1456, allocations: 39.12 kB / 497.5 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of pre-optimization done (n=70): time 2.414e-06/0.1456, allocations: 0 / 497.5 MB, free: 0.9766 MB / 366.1 MB Notification: Performance of matching and sorting (n=72): time 0.006058/0.1517, allocations: 3.342 MB / 0.4891 GB, free: 13.48 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.194e-05/0.1518, allocations: 137.1 kB / 0.4892 GB, free: 13.31 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007478/0.1525, allocations: 0.6803 MB / 0.4899 GB, free: 12.62 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 5.784e-05/0.1526, allocations: 41.7 kB / 0.4899 GB, free: 12.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003001/0.1529, allocations: 471.3 kB / 0.4904 GB, free: 12.1 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001921/0.1531, allocations: 268.2 kB / 0.4906 GB, free: 11.84 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001075/0.1532, allocations: 77.67 kB / 0.4907 GB, free: 11.75 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001042/0.1533, allocations: 338 kB / 0.491 GB, free: 11.42 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006056/0.154, allocations: 373.8 kB / 0.4914 GB, free: 11.05 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007397/0.1547, allocations: 0.5978 MB / 0.4919 GB, free: 10.36 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007585/0.1623, allocations: 2.414 MB / 0.4943 GB, free: 7.84 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.976e-06/0.1623, allocations: 8 kB / 0.4943 GB, free: 7.832 MB / 382.1 MB Notification: Performance of matching and sorting (n=108) (initialization): time 0.005965/0.1683, allocations: 2.059 MB / 0.4963 GB, free: 5.738 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002204/0.1685, allocations: 287.8 kB / 0.4966 GB, free: 5.363 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.19e-05/0.1686, allocations: 4 kB / 0.4966 GB, free: 5.359 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004777/0.1733, allocations: 1.031 MB / 0.4976 GB, free: 4.32 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005413/0.1739, allocations: 139.7 kB / 0.4977 GB, free: 4.184 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.219/0.3929, allocations: 9.225 MB / 0.5068 GB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006716/0.3936, allocations: 43.52 kB / 0.5068 GB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.134e-05/0.3937, allocations: 35.06 kB / 0.5068 GB, free: 40.27 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.091e-05/0.3937, allocations: 3.781 kB / 0.5068 GB, free: 40.27 MB / 382.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0052/0.3989, allocations: 1.851 MB / 0.5086 GB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.744e-05/0.3989, allocations: 10.22 kB / 0.5086 GB, free: 40.14 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004574/0.4035, allocations: 1.002 MB / 0.5096 GB, free: 40.12 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005824/0.4041, allocations: 137.7 kB / 0.5098 GB, free: 40.12 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01368/0.4178, allocations: 8.98 MB / 0.5185 GB, free: 36.23 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006519/0.4185, allocations: 37.16 kB / 0.5186 GB, free: 36.21 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.501e-05/0.4186, allocations: 33.22 kB / 0.5186 GB, free: 36.21 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.0005768/0.4192, allocations: 415.6 kB / 0.519 GB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.4193, allocations: 92.02 kB / 0.5191 GB, free: 35.92 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002097/0.4214, allocations: 1.256 MB / 0.5203 GB, free: 35.28 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.283e-05/0.4215, allocations: 12.41 kB / 0.5203 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.193e-06/0.4215, allocations: 1.312 kB / 0.5203 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.003e-05/0.4215, allocations: 5.078 kB / 0.5203 GB, free: 35.27 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003275/0.4248, allocations: 2.412 MB / 0.5227 GB, free: 34.02 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.671e-06/0.4248, allocations: 8.031 kB / 0.5227 GB, free: 34.02 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007915/0.4256, allocations: 167.8 kB / 0.5228 GB, free: 34.01 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004234/0.426, allocations: 151.7 kB / 0.523 GB, free: 33.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.789e-05/0.4261, allocations: 24.83 kB / 0.523 GB, free: 33.94 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002831/0.4289, allocations: 5.41 MB / 0.5283 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.4289, allocations: 1.906 kB / 0.5283 GB, free: 28.64 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002507/0.4315, allocations: 1.871 MB / 0.5301 GB, free: 27.62 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003471/0.4318, allocations: 232.1 kB / 0.5303 GB, free: 27.45 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.4319, allocations: 26.09 kB / 0.5304 GB, free: 27.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004754/0.4324, allocations: 38.02 kB / 0.5304 GB, free: 27.42 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001244/0.4325, allocations: 59.22 kB / 0.5305 GB, free: 27.41 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.139e-05/0.4326, allocations: 23.7 kB / 0.5305 GB, free: 27.4 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000577/0.4332, allocations: 478.3 kB / 0.5309 GB, free: 27.2 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4332, allocations: 1.688 kB / 0.5309 GB, free: 27.2 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001771/0.435, allocations: 462.8 kB / 0.5314 GB, free: 27.14 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.002446/0.4374, allocations: 2.449 MB / 0.5338 GB, free: 25.48 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004287/0.4417, allocations: 2.61 MB / 0.5363 GB, free: 23.95 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.4418, allocations: 0 / 0.5363 GB, free: 23.95 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001046/0.4428, allocations: 0.9243 MB / 0.5372 GB, free: 23.28 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001338/0.4442, allocations: 227.2 kB / 0.5374 GB, free: 23.17 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01813/0.4623, allocations: 11.18 MB / 0.5484 GB, free: 11.86 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005712/0.4629, allocations: 1.183 MB / 0.5495 GB, free: 10.65 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0007594/0.4637, allocations: 215.1 kB / 0.5497 GB, free: 10.43 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004264/0.4641, allocations: 371.3 kB / 0.5501 GB, free: 10.07 MB / 382.1 MB Notification: Performance of SimCode: time 8.21e-07/0.4641, allocations: 0 / 0.5501 GB, free: 10.07 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05464/0.5188, allocations: 31.52 MB / 0.5809 GB, free: 10.91 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002/0.519, allocations: 236.8 kB / 0.5811 GB, free: 10.65 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.447/2.966, allocations: 4 kB / 0.5811 GB, free: 10.65 MB / 414.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_ASM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv.pipe 2>&1) TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.ASM_ctrlAv_res.mat does not exist to compare? outputFormat=mat