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.001809/0.001809, allocations: 109.2 kB / 17.06 MB, free: 5.828 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.002034/0.002034, allocations: 195.9 kB / 18 MB, free: 4.965 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.507/1.507, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1864/0.1864, allocations: 38.04 MB / 329.9 MB, free: 8.758 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001931/0.001931, allocations: 71.88 kB / 457.7 MB, free: 7.363 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3711, allocations: 58.06 MB / 0.5036 GB, free: 7.473 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007703/0.3789, allocations: 5.697 MB / 0.5092 GB, free: 3.523 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003336/0.3823, allocations: 2.115 MB / 0.5113 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004348/0.3827, allocations: 24.41 kB / 0.5113 GB, free: 2.016 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006396/0.3834, allocations: 173.1 kB / 0.5114 GB, free: 1.918 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001143/0.3846, allocations: 412.6 kB / 0.5118 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006756/0.3853, allocations: 251.9 kB / 0.5121 GB, free: 1.543 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001154/0.3864, allocations: 0.837 MB / 0.5129 GB, free: 1.152 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005993/0.387, allocations: 0.4953 MB / 0.5134 GB, free: 0.9492 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004844/0.3875, allocations: 359.1 kB / 0.5137 GB, free: 0.7734 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004672/0.388, allocations: 337.1 kB / 0.514 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.624e-05/0.3881, allocations: 53.06 kB / 0.5141 GB, free: 0.625 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002754/0.3884, allocations: 104.5 kB / 0.5142 GB, free: 0.6055 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002068/0.3886, allocations: 183 kB / 0.5144 GB, free: 0.5156 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000302/0.3889, allocations: 307.2 kB / 0.5147 GB, free: 336 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001107/0.39, allocations: 0.7364 MB / 0.5154 GB, free: 32 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.951e-06/0.39, allocations: 2.062 kB / 0.5154 GB, free: 32 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.724e-06/0.39, allocations: 0 / 0.5154 GB, free: 32 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.02e-05/0.3901, allocations: 4 kB / 0.5154 GB, free: 28 kB / 382.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.002088/0.3921, allocations: 0.9043 MB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.826e-05/0.3922, allocations: 16.52 kB / 0.5163 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001401/0.3924, allocations: 79.88 kB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001528/0.3925, allocations: 70.64 kB / 0.5164 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001073/0.3936, allocations: 0.5246 MB / 0.5169 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.805e-05/0.3937, allocations: 31.12 kB / 0.517 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001518/0.3938, allocations: 53.67 kB / 0.517 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.3949, allocations: 0.5174 MB / 0.5175 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.236e-05/0.395, allocations: 5.5 kB / 0.5175 GB, free: 14.56 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.945e-05/0.395, allocations: 17.02 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.502e-05/0.3951, allocations: 16.02 kB / 0.5176 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007361/0.3958, allocations: 337.2 kB / 0.5179 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003183/0.399, allocations: 2.068 MB / 0.5199 GB, free: 12.86 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005332/0.3996, allocations: 229.2 kB / 0.5201 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001637/0.3998, allocations: 85.25 kB / 0.5202 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.369e-05/0.3998, allocations: 10.69 kB / 0.5202 GB, free: 12.67 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003255/0.4001, allocations: 164 kB / 0.5204 GB, free: 12.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.064e-06/0.4001, allocations: 1.125 kB / 0.5204 GB, free: 12.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001972/0.4021, allocations: 0.9468 MB / 0.5213 GB, free: 11.91 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000115/0.4023, allocations: 131.9 kB / 0.5214 GB, free: 11.76 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007032/0.403, allocations: 431 kB / 0.5218 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.7e-05/0.403, allocations: 31.89 kB / 0.5219 GB, free: 11.51 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002814/0.4033, allocations: 298 kB / 0.5221 GB, free: 11.27 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001185/0.4034, allocations: 98.97 kB / 0.5222 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001512/0.4036, allocations: 78.22 kB / 0.5223 GB, free: 11.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002233/0.4038, allocations: 357.2 kB / 0.5227 GB, free: 10.81 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002174/0.404, allocations: 83.36 kB / 0.5227 GB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.4044, allocations: 227.4 kB / 0.5229 GB, free: 10.58 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005497/0.405, allocations: 322.3 kB / 0.5233 GB, free: 10.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.975e-06/0.405, allocations: 5.094 kB / 0.5233 GB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.001007/0.406, allocations: 441.6 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.21e-05/0.406, allocations: 7.438 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.073e-05/0.4061, allocations: 8.641 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00045/0.4065, allocations: 88.81 kB / 0.5238 GB, free: 10.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002593/0.4068, allocations: 72.98 kB / 0.5239 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002371/0.4092, allocations: 1.833 MB / 0.5256 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003273/0.4095, allocations: 18.61 kB / 0.5257 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.066e-05/0.4096, allocations: 17.48 kB / 0.5257 GB, free: 8.469 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.0003039/0.4099, allocations: 201.7 kB / 0.5259 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.073e-05/0.4099, allocations: 52.62 kB / 0.5259 GB, free: 8.277 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006097/0.4106, allocations: 284.5 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.4106, allocations: 3.625 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.757e-06/0.4106, allocations: 1.344 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.4106, allocations: 1.406 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00129/0.4119, allocations: 0.7751 MB / 0.527 GB, free: 7.645 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4119, allocations: 9.906 kB / 0.527 GB, free: 7.637 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000261/0.4122, allocations: 49.31 kB / 0.527 GB, free: 7.629 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002162/0.4124, allocations: 49.72 kB / 0.5271 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.522e-05/0.4125, allocations: 8.25 kB / 0.5271 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0015/0.414, allocations: 1.546 MB / 0.5286 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.933e-06/0.414, allocations: 1.75 kB / 0.5286 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007688/0.4147, allocations: 484.8 kB / 0.529 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001671/0.4149, allocations: 139.6 kB / 0.5292 GB, free: 5.695 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.389e-05/0.415, allocations: 7.328 kB / 0.5292 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002189/0.4152, allocations: 13.33 kB / 0.5292 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.918e-05/0.4153, allocations: 21.66 kB / 0.5292 GB, free: 5.684 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.4153, allocations: 11.03 kB / 0.5292 GB, free: 5.68 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003808/0.4157, allocations: 298.1 kB / 0.5295 GB, free: 5.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4157, allocations: 3.938 kB / 0.5295 GB, free: 5.535 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005807/0.4163, allocations: 111.8 kB / 0.5296 GB, free: 5.523 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.002419/0.4187, allocations: 1.299 MB / 0.5309 GB, free: 4.598 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009539/0.4197, allocations: 403.5 kB / 0.5313 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.4197, allocations: 0 / 0.5313 GB, free: 4.379 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004489/0.4202, allocations: 238.2 kB / 0.5315 GB, free: 4.227 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008244/0.421, allocations: 144 kB / 0.5316 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006527/0.4275, allocations: 4.232 MB / 0.5358 GB, free: 1.441 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006004/0.4282, allocations: 0.8786 MB / 0.5366 GB, free: 0.7227 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003305/0.4285, allocations: 69.02 kB / 0.5367 GB, free: 0.7031 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003333/0.4289, allocations: 173.8 kB / 0.5369 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of SimCode: time 7.92e-07/0.4289, allocations: 0 / 0.5369 GB, free: 0.5742 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04943/0.4783, allocations: 11.51 MB / 0.5481 GB, free: 10.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.77/13.25, allocations: 12 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)