Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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-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.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_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.0008582/0.0008581, allocations: 88.91 kB / 16.31 MB, free: 6.469 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.001082/0.001082, allocations: 183.9 kB / 17.21 MB, free: 6.336 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.491/1.491, allocations: 223.2 MB / 241.2 MB, free: 5.445 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.3929/0.3929, allocations: 38.07 MB / 330.4 MB, free: 14.21 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003135/0.0003137, allocations: 8 kB / 400.2 MB, free: 9.188 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3221/0.3224, allocations: 59.16 MB / 459.3 MB, free: 29.99 MB / 350.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv): time 0.008203/0.3307, allocations: 7.322 MB / 466.7 MB, free: 24.78 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006461/0.3372, allocations: 3.14 MB / 469.8 MB, free: 22.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001449/0.3387, allocations: 53.25 kB / 469.8 MB, free: 22.52 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009993/0.3397, allocations: 253.8 kB / 470.1 MB, free: 22.39 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0024/0.3421, allocations: 0.6144 MB / 470.7 MB, free: 22.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001475/0.3436, allocations: 388.9 kB / 471.1 MB, free: 21.87 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003597/0.3472, allocations: 1.567 MB / 472.7 MB, free: 21.22 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002594/0.3498, allocations: 0.9619 MB / 473.6 MB, free: 20.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001366/0.3512, allocations: 462.9 kB / 474.1 MB, free: 20.56 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001223/0.3524, allocations: 0.5779 MB / 474.6 MB, free: 20.35 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001194/0.3526, allocations: 46.06 kB / 474.7 MB, free: 20.35 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006787/0.3532, allocations: 273.3 kB / 475 MB, free: 20.29 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004008/0.3537, allocations: 326.3 kB / 475.3 MB, free: 20.18 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002636/0.3539, allocations: 225.9 kB / 475.5 MB, free: 20.04 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001401/0.3553, allocations: 1.282 MB / 476.8 MB, free: 19.39 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.019e-06/0.3554, allocations: 1 kB / 476.8 MB, free: 19.39 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.283e-06/0.3554, allocations: 0 / 476.8 MB, free: 19.39 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.755e-05/0.3554, allocations: 0 / 476.8 MB, free: 19.39 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.002339/0.3577, allocations: 1.231 MB / 478 MB, free: 18.47 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.757e-05/0.3578, allocations: 8.75 kB / 478 MB, free: 18.47 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001814/0.358, allocations: 152.2 kB / 478.2 MB, free: 18.34 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007128/0.3587, allocations: 170.7 kB / 478.3 MB, free: 18.26 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001294/0.36, allocations: 0.7611 MB / 479.1 MB, free: 17.66 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.353e-05/0.3601, allocations: 64.73 kB / 479.2 MB, free: 17.63 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.3603, allocations: 98.28 kB / 479.3 MB, free: 17.59 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001958/0.3622, allocations: 1.152 MB / 480.4 MB, free: 16.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.656e-05/0.3623, allocations: 10.12 kB / 480.4 MB, free: 16.84 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.068e-05/0.3624, allocations: 36.83 kB / 480.5 MB, free: 16.82 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001355/0.3625, allocations: 64.53 kB / 480.5 MB, free: 16.8 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001714/0.3643, allocations: 0.9423 MB / 481.5 MB, free: 16.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005881/0.3702, allocations: 4.66 MB / 486.1 MB, free: 12.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001054/0.3712, allocations: 0.6857 MB / 486.8 MB, free: 11.93 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004778/0.3717, allocations: 345.6 kB / 487.1 MB, free: 11.58 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.952e-05/0.3718, allocations: 12.48 kB / 487.2 MB, free: 11.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.428e-05/0.3718, allocations: 43.12 kB / 487.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of pre-optimization done (n=58): time 2.635e-06/0.3718, allocations: 0 / 487.2 MB, free: 11.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=62): time 0.004085/0.3759, allocations: 2.37 MB / 489.6 MB, free: 9.07 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.148e-05/0.376, allocations: 141.1 kB / 489.7 MB, free: 8.902 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006683/0.3767, allocations: 0.6723 MB / 490.4 MB, free: 8.223 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.585e-05/0.3767, allocations: 37.7 kB / 490.4 MB, free: 8.18 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002264/0.3769, allocations: 490.8 kB / 490.9 MB, free: 7.691 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00013/0.3771, allocations: 216.8 kB / 491.1 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.524e-05/0.3771, allocations: 20 kB / 491.1 MB, free: 7.457 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.349e-05/0.3772, allocations: 390.7 kB / 491.5 MB, free: 7.066 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003852/0.3776, allocations: 277.8 kB / 491.8 MB, free: 6.797 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004823/0.3781, allocations: 0.5177 MB / 492.3 MB, free: 6.172 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002044/0.3802, allocations: 0.814 MB / 493.1 MB, free: 5.344 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.528e-06/0.3802, allocations: 4 kB / 493.1 MB, free: 5.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=100) (initialization): time 0.002397/0.3826, allocations: 1.398 MB / 494.5 MB, free: 3.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001403/0.3827, allocations: 315.9 kB / 494.8 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.16e-05/0.3827, allocations: 4 kB / 494.8 MB, free: 3.488 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001324/0.3841, allocations: 478.8 kB / 495.3 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000468/0.3846, allocations: 147.8 kB / 495.4 MB, free: 2.871 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00836/0.3929, allocations: 6.21 MB / 0.4899 GB, free: 12.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007305/0.3937, allocations: 43.98 kB / 0.4899 GB, free: 12.34 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.972e-05/0.3938, allocations: 39.98 kB / 0.49 GB, free: 12.3 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.416e-06/0.3938, allocations: 4 kB / 0.49 GB, free: 12.29 MB / 366.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002441/0.3962, allocations: 1.195 MB / 0.4911 GB, free: 11.08 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.141e-05/0.3963, allocations: 8 kB / 0.4911 GB, free: 11.07 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001349/0.3976, allocations: 421.4 kB / 0.4915 GB, free: 10.65 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005107/0.3981, allocations: 147.7 kB / 0.4917 GB, free: 10.51 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008025/0.4062, allocations: 5.94 MB / 0.4975 GB, free: 4.305 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006749/0.4069, allocations: 32 kB / 0.4975 GB, free: 4.273 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.665e-05/0.4069, allocations: 35.98 kB / 0.4976 GB, free: 4.238 MB / 366.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.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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 1 {4 23} Notification: Performance of prepare postOptimizeDAE: time 0.0007028/0.4077, allocations: 408.8 kB / 0.4979 GB, free: 3.828 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001417/0.4078, allocations: 87.05 kB / 0.498 GB, free: 3.742 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001288/0.4091, allocations: 0.738 MB / 0.4987 GB, free: 2.992 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.207e-06/0.4091, allocations: 8 kB / 0.4988 GB, free: 2.984 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.4091, allocations: 4 kB / 0.4988 GB, free: 2.98 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.255e-06/0.4091, allocations: 3.984 kB / 0.4988 GB, free: 2.977 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002697/0.4118, allocations: 1.77 MB / 0.5005 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.558e-06/0.4119, allocations: 0 / 0.5005 GB, free: 1.125 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006553/0.4125, allocations: 151.8 kB / 0.5006 GB, free: 0.9766 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.673e-05/0.4126, allocations: 20.86 kB / 0.5007 GB, free: 0.9531 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.414e-05/0.4127, allocations: 15.98 kB / 0.5007 GB, free: 0.9375 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009547/0.4136, allocations: 1.288 MB / 0.5019 GB, free: 15.52 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.667e-06/0.4137, allocations: 3.953 kB / 0.5019 GB, free: 15.51 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001739/0.4154, allocations: 1.217 MB / 0.5031 GB, free: 14.26 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003136/0.4157, allocations: 212.1 kB / 0.5033 GB, free: 14.04 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.529e-05/0.4158, allocations: 12 kB / 0.5033 GB, free: 14.02 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003917/0.4162, allocations: 31.94 kB / 0.5034 GB, free: 13.99 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.647e-05/0.4163, allocations: 40.5 kB / 0.5034 GB, free: 13.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.888e-05/0.4164, allocations: 23.98 kB / 0.5034 GB, free: 13.93 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0006292/0.417, allocations: 471 kB / 0.5039 GB, free: 13.48 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.417, allocations: 0 / 0.5039 GB, free: 13.48 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.00162/0.4187, allocations: 412 kB / 0.5043 GB, free: 13.07 MB / 382.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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002219/0.4209, allocations: 1.807 MB / 0.506 GB, free: 11.22 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003311/0.4242, allocations: 1.984 MB / 0.508 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.377e-06/0.4242, allocations: 0 / 0.508 GB, free: 9.191 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006245/0.4249, allocations: 454 kB / 0.5084 GB, free: 8.738 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.426, allocations: 213.3 kB / 0.5086 GB, free: 8.531 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01041/0.4364, allocations: 6.282 MB / 0.5147 GB, free: 1.996 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008135/0.4372, allocations: 1.116 MB / 0.5158 GB, free: 0.8477 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008043/0.438, allocations: 214.5 kB / 0.516 GB, free: 0.6328 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004793/0.4385, allocations: 343.3 kB / 0.5164 GB, free: 304 kB / 382.1 MB Notification: Performance of SimCode: time 6.31e-07/0.4385, allocations: 4 kB / 0.5164 GB, free: 300 kB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05172/0.4903, allocations: 23.84 MB / 0.5396 GB, free: 8.719 MB / 414.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002192/0.4906, allocations: 222 kB / 0.5399 GB, free: 8.473 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.444/2.935, allocations: 0 / 0.5399 GB, free: 8.473 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC3ph_Drives_SM_ctrlAv.fmu > PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv.pipe 2>&1) Environment - environmentSimulation: TODO: How the !@#!# did the simulation report success but simulation result PowerSystems_latest_PowerSystems.Examples.AC3ph.Drives.SM_ctrlAv_res.mat does not exist to compare? outputFormat=mat