Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.00106/0.00106, allocations: 112.3 kB / 17.06 MB, free: 5.965 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.001032/0.001032, allocations: 196 kB / 18.01 MB, free: 5.051 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.456/1.456, allocations: 222.9 MB / 241.7 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.2044/0.2044, allocations: 38.04 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001288/0.001288, allocations: 67.89 kB / 457.7 MB, free: 7.352 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3516/0.3529, allocations: 58.05 MB / 0.5036 GB, free: 7.395 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006146/0.3591, allocations: 5.701 MB / 0.5092 GB, free: 3.445 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002823/0.3619, allocations: 2.117 MB / 0.5113 GB, free: 1.945 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002961/0.3622, allocations: 20.53 kB / 0.5113 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000607/0.3629, allocations: 169.8 kB / 0.5114 GB, free: 1.844 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009678/0.3639, allocations: 417.9 kB / 0.5118 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006017/0.3645, allocations: 254.4 kB / 0.5121 GB, free: 1.465 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009612/0.3654, allocations: 0.838 MB / 0.5129 GB, free: 1.074 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005607/0.366, allocations: 0.4957 MB / 0.5134 GB, free: 0.8711 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004611/0.3665, allocations: 361.7 kB / 0.5137 GB, free: 0.6992 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004378/0.3669, allocations: 346.3 kB / 0.5141 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.83e-05/0.367, allocations: 53.97 kB / 0.5141 GB, free: 0.543 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002259/0.3673, allocations: 104.8 kB / 0.5142 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001833/0.3675, allocations: 186.2 kB / 0.5144 GB, free: 440 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002767/0.3677, allocations: 303.1 kB / 0.5147 GB, free: 252 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009225/0.3687, allocations: 0.7368 MB / 0.5154 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.997e-06/0.3687, allocations: 1.859 kB / 0.5154 GB, free: 15.95 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.322e-06/0.3687, allocations: 0 / 0.5154 GB, free: 15.95 MB / 398.1 MB Notification: Performance of Transformations before backend: time 9.598e-06/0.3687, allocations: 0 / 0.5154 GB, free: 15.95 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001721/0.3704, allocations: 0.9079 MB / 0.5163 GB, free: 15.27 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.051e-05/0.3705, allocations: 11.03 kB / 0.5163 GB, free: 15.27 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001184/0.3706, allocations: 84.06 kB / 0.5164 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001165/0.3707, allocations: 70.8 kB / 0.5164 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009285/0.3717, allocations: 0.5238 MB / 0.517 GB, free: 14.8 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.62e-05/0.3717, allocations: 31.09 kB / 0.517 GB, free: 14.79 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001437/0.3719, allocations: 49.53 kB / 0.517 GB, free: 14.77 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009057/0.3728, allocations: 0.521 MB / 0.5175 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.089e-05/0.3728, allocations: 2.016 kB / 0.5175 GB, free: 14.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.85e-05/0.3729, allocations: 17.09 kB / 0.5176 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.575e-05/0.3729, allocations: 16.22 kB / 0.5176 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006912/0.3736, allocations: 337 kB / 0.5179 GB, free: 14.35 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002723/0.3764, allocations: 2.072 MB / 0.5199 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004398/0.3768, allocations: 231.9 kB / 0.5201 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001363/0.377, allocations: 81.05 kB / 0.5202 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.79e-05/0.377, allocations: 3.5 kB / 0.5202 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002754/0.3773, allocations: 169.8 kB / 0.5204 GB, free: 12.49 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.893e-06/0.3773, allocations: 1.25 kB / 0.5204 GB, free: 12.49 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001724/0.379, allocations: 0.9465 MB / 0.5213 GB, free: 11.84 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.663e-05/0.3791, allocations: 132.2 kB / 0.5214 GB, free: 11.68 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005249/0.3797, allocations: 433.4 kB / 0.5218 GB, free: 11.46 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.867e-05/0.3797, allocations: 31.77 kB / 0.5219 GB, free: 11.43 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002102/0.3799, allocations: 305 kB / 0.5222 GB, free: 11.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.479e-05/0.38, allocations: 90.78 kB / 0.5223 GB, free: 11.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001184/0.3801, allocations: 77.06 kB / 0.5223 GB, free: 11.07 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001645/0.3803, allocations: 354.5 kB / 0.5227 GB, free: 10.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001692/0.3805, allocations: 84.92 kB / 0.5227 GB, free: 10.71 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002652/0.3808, allocations: 226.8 kB / 0.523 GB, free: 10.5 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004185/0.3812, allocations: 327.1 kB / 0.5233 GB, free: 10.24 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.554e-06/0.3812, allocations: 0 / 0.5233 GB, free: 10.24 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008783/0.3821, allocations: 442.4 kB / 0.5237 GB, free: 10.04 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.783e-05/0.3821, allocations: 6.875 kB / 0.5237 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.856e-06/0.3821, allocations: 4.125 kB / 0.5237 GB, free: 10.04 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004195/0.3825, allocations: 93.16 kB / 0.5238 GB, free: 10.02 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002561/0.3828, allocations: 76.8 kB / 0.5239 GB, free: 10.01 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/0.3853, allocations: 1.823 MB / 0.5256 GB, free: 8.402 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003211/0.3856, allocations: 19.25 kB / 0.5257 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.227e-05/0.3857, allocations: 21.28 kB / 0.5257 GB, free: 8.391 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * Number of states: 0 () * Number of discrete variables: 2 (system.initime,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (40): * Single equations (assignments): 39 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * 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): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0003007/0.386, allocations: 202.1 kB / 0.5259 GB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.364e-05/0.3861, allocations: 52.97 kB / 0.5259 GB, free: 8.199 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006158/0.3867, allocations: 278.1 kB / 0.5262 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.61e-06/0.3867, allocations: 2.75 kB / 0.5262 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.3867, allocations: 1.375 kB / 0.5262 GB, free: 8.066 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.3867, allocations: 6.688 kB / 0.5262 GB, free: 8.062 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001358/0.3881, allocations: 0.7845 MB / 0.527 GB, free: 7.559 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.971e-06/0.3881, allocations: 17 kB / 0.527 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002863/0.3884, allocations: 42.39 kB / 0.527 GB, free: 7.543 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002147/0.3886, allocations: 48.81 kB / 0.5271 GB, free: 7.527 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.453e-05/0.3887, allocations: 11.19 kB / 0.5271 GB, free: 7.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001399/0.3901, allocations: 1.534 MB / 0.5286 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.815e-06/0.3901, allocations: 1.906 kB / 0.5286 GB, free: 6.047 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007676/0.3909, allocations: 481.4 kB / 0.529 GB, free: 5.754 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001825/0.3911, allocations: 147.6 kB / 0.5292 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.272e-05/0.3911, allocations: 3.719 kB / 0.5292 GB, free: 5.613 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002244/0.3914, allocations: 14 kB / 0.5292 GB, free: 5.609 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.134e-05/0.3914, allocations: 24.58 kB / 0.5292 GB, free: 5.602 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.114e-05/0.3915, allocations: 7.828 kB / 0.5292 GB, free: 5.602 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.000402/0.3919, allocations: 297.3 kB / 0.5295 GB, free: 5.461 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3919, allocations: 0 / 0.5295 GB, free: 5.461 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006426/0.3925, allocations: 112.2 kB / 0.5296 GB, free: 5.449 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * 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,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002231/0.3948, allocations: 1.314 MB / 0.5309 GB, free: 4.516 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008633/0.3957, allocations: 398.1 kB / 0.5313 GB, free: 4.301 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.595e-06/0.3957, allocations: 1.125 kB / 0.5313 GB, free: 4.301 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004006/0.3961, allocations: 242.8 kB / 0.5315 GB, free: 4.145 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007559/0.3968, allocations: 135.2 kB / 0.5316 GB, free: 4.098 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006209/0.4031, allocations: 4.232 MB / 0.5358 GB, free: 1.359 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005392/0.4036, allocations: 0.8754 MB / 0.5366 GB, free: 0.6445 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003404/0.404, allocations: 67.8 kB / 0.5367 GB, free: 0.625 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002703/0.4043, allocations: 174.5 kB / 0.5369 GB, free: 0.4961 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4043, allocations: 4 kB / 0.5369 GB, free: 0.4922 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03984/0.4441, allocations: 11.51 MB / 0.5481 GB, free: 10.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.45/12.89, allocations: 3.938 kB / 0.5481 GB, free: 10.19 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.csv --start-time 0 --stop-time 60 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.024 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)