Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_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/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_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.00111/0.00111, allocations: 110.2 kB / 17.06 MB, free: 5.973 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.001181/0.001181, allocations: 198.8 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.351/1.351, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.182/0.182, allocations: 38.03 MB / 329.9 MB, free: 8.703 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001195/0.001195, allocations: 63.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3201/0.3213, allocations: 58.06 MB / 0.5036 GB, free: 7.348 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.006743/0.328, allocations: 5.694 MB / 0.5092 GB, free: 3.406 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003/0.3311, allocations: 2.117 MB / 0.5112 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000305/0.3314, allocations: 15.88 kB / 0.5113 GB, free: 1.902 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005684/0.332, allocations: 178.3 kB / 0.5114 GB, free: 1.801 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008784/0.3329, allocations: 414.4 kB / 0.5118 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005913/0.3335, allocations: 255.7 kB / 0.5121 GB, free: 1.422 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001018/0.3345, allocations: 0.8411 MB / 0.5129 GB, free: 1.027 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006718/0.3352, allocations: 0.499 MB / 0.5134 GB, free: 0.8203 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005614/0.3358, allocations: 356.9 kB / 0.5137 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005002/0.3363, allocations: 348.9 kB / 0.514 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.835e-05/0.3364, allocations: 53.62 kB / 0.5141 GB, free: 0.4922 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002649/0.3367, allocations: 105.6 kB / 0.5142 GB, free: 484 kB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.3369, allocations: 182.7 kB / 0.5144 GB, free: 392 kB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003039/0.3372, allocations: 306.9 kB / 0.5147 GB, free: 200 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001082/0.3383, allocations: 0.7333 MB / 0.5154 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.3383, allocations: 0 / 0.5154 GB, free: 15.9 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.365e-06/0.3383, allocations: 0.6562 kB / 0.5154 GB, free: 15.9 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.197e-05/0.3383, allocations: 1.062 kB / 0.5154 GB, free: 15.9 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.001833/0.3402, allocations: 0.9121 MB / 0.5163 GB, free: 15.22 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3402, allocations: 14.02 kB / 0.5163 GB, free: 15.21 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.582e-05/0.3403, allocations: 79.7 kB / 0.5164 GB, free: 15.15 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001348/0.3405, allocations: 71.92 kB / 0.5164 GB, free: 15.11 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009342/0.3414, allocations: 0.5267 MB / 0.5169 GB, free: 14.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.058e-05/0.3415, allocations: 31.67 kB / 0.517 GB, free: 14.73 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001383/0.3416, allocations: 49.3 kB / 0.517 GB, free: 14.71 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001023/0.3426, allocations: 0.5138 MB / 0.5175 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.648e-05/0.3427, allocations: 9.125 kB / 0.5175 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.855e-05/0.3428, allocations: 16.98 kB / 0.5175 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.066e-05/0.3429, allocations: 16.12 kB / 0.5176 GB, free: 14.41 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007347/0.3436, allocations: 333.4 kB / 0.5179 GB, free: 14.3 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002746/0.3464, allocations: 2.064 MB / 0.5199 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004202/0.3468, allocations: 237 kB / 0.5201 GB, free: 12.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000133/0.3469, allocations: 84.66 kB / 0.5202 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.749e-05/0.347, allocations: 2.594 kB / 0.5202 GB, free: 12.55 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002662/0.3472, allocations: 174.8 kB / 0.5204 GB, free: 12.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.643e-06/0.3473, allocations: 0 / 0.5204 GB, free: 12.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001752/0.349, allocations: 0.9409 MB / 0.5213 GB, free: 11.79 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.846e-05/0.3491, allocations: 140.7 kB / 0.5214 GB, free: 11.62 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005445/0.3497, allocations: 430.2 kB / 0.5218 GB, free: 11.41 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.3497, allocations: 32.08 kB / 0.5219 GB, free: 11.38 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002064/0.3499, allocations: 297.6 kB / 0.5221 GB, free: 11.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.547e-05/0.35, allocations: 93.25 kB / 0.5222 GB, free: 11.06 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001135/0.3501, allocations: 77.89 kB / 0.5223 GB, free: 11.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001605/0.3503, allocations: 354.8 kB / 0.5226 GB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001602/0.3505, allocations: 89.23 kB / 0.5227 GB, free: 10.65 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002533/0.3507, allocations: 223.2 kB / 0.5229 GB, free: 10.45 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000422/0.3512, allocations: 320.5 kB / 0.5233 GB, free: 10.19 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.267e-06/0.3512, allocations: 1.375 kB / 0.5233 GB, free: 10.19 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0008903/0.3521, allocations: 450.9 kB / 0.5237 GB, free: 9.988 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.268e-05/0.3521, allocations: 6.844 kB / 0.5237 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.038e-05/0.3521, allocations: 3.469 kB / 0.5237 GB, free: 9.988 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004465/0.3526, allocations: 98.05 kB / 0.5238 GB, free: 9.961 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002683/0.3529, allocations: 72.55 kB / 0.5239 GB, free: 9.953 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002291/0.3552, allocations: 1.826 MB / 0.5256 GB, free: 8.344 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003557/0.3555, allocations: 23.44 kB / 0.5257 GB, free: 8.336 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.255e-05/0.3556, allocations: 18.5 kB / 0.5257 GB, free: 8.332 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.0003343/0.3559, allocations: 204.7 kB / 0.5259 GB, free: 8.172 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.147e-05/0.356, allocations: 49.03 kB / 0.5259 GB, free: 8.145 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006281/0.3566, allocations: 282.7 kB / 0.5262 GB, free: 8.008 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3567, allocations: 6.75 kB / 0.5262 GB, free: 8.004 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.563e-06/0.3567, allocations: 5.359 kB / 0.5262 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.3567, allocations: 2.688 kB / 0.5262 GB, free: 8 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.358, allocations: 0.772 MB / 0.527 GB, free: 7.508 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.674e-06/0.3581, allocations: 5.219 kB / 0.527 GB, free: 7.504 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002804/0.3583, allocations: 45.3 kB / 0.527 GB, free: 7.5 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002216/0.3586, allocations: 53.19 kB / 0.5271 GB, free: 7.48 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.834e-05/0.3586, allocations: 8.797 kB / 0.5271 GB, free: 7.477 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001353/0.36, allocations: 1.538 MB / 0.5286 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.535e-06/0.36, allocations: 1.344 kB / 0.5286 GB, free: 6 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008555/0.3609, allocations: 485.1 kB / 0.529 GB, free: 5.703 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002017/0.3611, allocations: 142.8 kB / 0.5292 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.708e-05/0.3611, allocations: 4.078 kB / 0.5292 GB, free: 5.566 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002373/0.3614, allocations: 13.61 kB / 0.5292 GB, free: 5.562 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.63e-05/0.3615, allocations: 25.61 kB / 0.5292 GB, free: 5.555 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.374e-05/0.3615, allocations: 6.562 kB / 0.5292 GB, free: 5.555 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004673/0.362, allocations: 297.8 kB / 0.5295 GB, free: 5.414 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.362, allocations: 4.938 kB / 0.5295 GB, free: 5.41 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006696/0.3627, allocations: 111.7 kB / 0.5296 GB, free: 5.398 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.001916/0.3646, allocations: 1.304 MB / 0.5309 GB, free: 4.469 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0008743/0.3655, allocations: 394.2 kB / 0.5313 GB, free: 4.258 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.296e-06/0.3655, allocations: 8.188 kB / 0.5313 GB, free: 4.25 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000371/0.3659, allocations: 242.6 kB / 0.5315 GB, free: 4.094 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008027/0.3667, allocations: 137.6 kB / 0.5316 GB, free: 4.051 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006182/0.3729, allocations: 4.24 MB / 0.5358 GB, free: 1.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005242/0.3734, allocations: 0.879 MB / 0.5366 GB, free: 0.5898 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.3737, allocations: 68.77 kB / 0.5367 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002693/0.374, allocations: 173.4 kB / 0.5369 GB, free: 452 kB / 398.1 MB Notification: Performance of SimCode: time 9.02e-07/0.374, allocations: 0 / 0.5369 GB, free: 452 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03812/0.4122, allocations: 11.49 MB / 0.5481 GB, free: 10.11 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.09/12.5, allocations: 12.77 kB / 0.5481 GB, free: 10.09 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & python3 -m fmpy simulate --output-file PowerSystems_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_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)