Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",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.001882/0.001882, allocations: 113.4 kB / 17.07 MB, free: 5.988 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.00234/0.00234, allocations: 193.4 kB / 18 MB, free: 5.074 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.472/1.472, allocations: 222.9 MB / 241.7 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1853/0.1853, allocations: 38.03 MB / 329.9 MB, free: 8.707 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001969/0.001969, allocations: 59.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3818/0.3838, allocations: 58.07 MB / 0.5036 GB, free: 7.379 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006858/0.3907, allocations: 5.161 MB / 0.5087 GB, free: 3.82 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.0029/0.3936, allocations: 1.99 MB / 0.5106 GB, free: 2.41 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003941/0.3941, allocations: 15.5 kB / 0.5106 GB, free: 2.406 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006211/0.3947, allocations: 140.8 kB / 0.5107 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001115/0.3959, allocations: 362.5 kB / 0.5111 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006649/0.3965, allocations: 214.6 kB / 0.5113 GB, free: 1.996 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009873/0.3975, allocations: 0.7001 MB / 0.512 GB, free: 1.66 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005955/0.3981, allocations: 444.5 kB / 0.5124 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004716/0.3986, allocations: 289.2 kB / 0.5127 GB, free: 1.34 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000459/0.3991, allocations: 286.6 kB / 0.513 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.838e-05/0.3992, allocations: 46.5 kB / 0.513 GB, free: 1.211 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002382/0.3994, allocations: 93.73 kB / 0.5131 GB, free: 1.195 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001664/0.3996, allocations: 154 kB / 0.5132 GB, free: 1.113 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000259/0.3999, allocations: 271.8 kB / 0.5135 GB, free: 0.9453 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009157/0.4008, allocations: 0.6542 MB / 0.5141 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.051e-06/0.4008, allocations: 0 / 0.5141 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.215e-06/0.4008, allocations: 0 / 0.5141 GB, free: 0.6758 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.085e-05/0.4008, allocations: 0 / 0.5141 GB, free: 0.6758 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.001625/0.4025, allocations: 0.8557 MB / 0.515 GB, free: 32 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4025, allocations: 13.48 kB / 0.515 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001416/0.4027, allocations: 76.81 kB / 0.5151 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.4028, allocations: 55.39 kB / 0.5151 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009917/0.4038, allocations: 493.3 kB / 0.5156 GB, free: 15.59 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.287e-05/0.4039, allocations: 28.22 kB / 0.5156 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.697e-05/0.404, allocations: 41.56 kB / 0.5156 GB, free: 15.56 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008884/0.4049, allocations: 454.8 kB / 0.5161 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.315e-05/0.4049, allocations: 9.047 kB / 0.5161 GB, free: 15.3 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.263e-05/0.405, allocations: 15.72 kB / 0.5161 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.606e-05/0.405, allocations: 14.36 kB / 0.5161 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005571/0.4055, allocations: 277.8 kB / 0.5164 GB, free: 15.18 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002766/0.4083, allocations: 1.852 MB / 0.5182 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006558/0.409, allocations: 247.1 kB / 0.5184 GB, free: 13.6 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000183/0.4092, allocations: 91.48 kB / 0.5185 GB, free: 13.55 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.276e-05/0.4092, allocations: 6.938 kB / 0.5185 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003545/0.4096, allocations: 174.2 kB / 0.5187 GB, free: 13.43 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.164e-06/0.4096, allocations: 0.6875 kB / 0.5187 GB, free: 13.43 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.00206/0.4117, allocations: 0.9322 MB / 0.5196 GB, free: 12.8 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001122/0.4118, allocations: 133.5 kB / 0.5197 GB, free: 12.64 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005831/0.4124, allocations: 404 kB / 0.5201 GB, free: 12.44 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.536e-05/0.4124, allocations: 35.92 kB / 0.5201 GB, free: 12.4 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000254/0.4127, allocations: 268.5 kB / 0.5204 GB, free: 12.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001027/0.4128, allocations: 95.03 kB / 0.5205 GB, free: 12.11 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001305/0.413, allocations: 74.88 kB / 0.5206 GB, free: 12.06 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001878/0.4131, allocations: 350 kB / 0.5209 GB, free: 11.73 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000172/0.4133, allocations: 82.91 kB / 0.521 GB, free: 11.7 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002857/0.4136, allocations: 215.5 kB / 0.5212 GB, free: 11.51 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004628/0.4141, allocations: 315.1 kB / 0.5215 GB, free: 11.26 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.915e-06/0.4141, allocations: 1.625 kB / 0.5215 GB, free: 11.26 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009069/0.415, allocations: 429.7 kB / 0.5219 GB, free: 11.07 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.147e-05/0.415, allocations: 8.484 kB / 0.5219 GB, free: 11.07 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.207e-06/0.4151, allocations: 7.438 kB / 0.5219 GB, free: 11.06 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004412/0.4155, allocations: 97 kB / 0.522 GB, free: 11.04 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002313/0.4158, allocations: 61.56 kB / 0.5221 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002652/0.4184, allocations: 2.026 MB / 0.524 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000298/0.4187, allocations: 15 kB / 0.524 GB, free: 9.258 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.484e-05/0.4188, allocations: 24.44 kB / 0.5241 GB, free: 9.25 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * 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 (37): * Single equations (assignments): 36 * 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 {(2,6)} Notification: Performance of prepare postOptimizeDAE: time 0.0002884/0.4191, allocations: 193.2 kB / 0.5243 GB, free: 9.09 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.019e-05/0.4191, allocations: 46.81 kB / 0.5243 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006234/0.4198, allocations: 297.7 kB / 0.5246 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.4198, allocations: 2.75 kB / 0.5246 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.027e-06/0.4198, allocations: 1.375 kB / 0.5246 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.4198, allocations: 3.391 kB / 0.5246 GB, free: 8.922 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001251/0.4211, allocations: 0.7697 MB / 0.5253 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.557e-06/0.4211, allocations: 2.172 kB / 0.5253 GB, free: 8.418 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002304/0.4213, allocations: 43.7 kB / 0.5254 GB, free: 8.414 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002126/0.4215, allocations: 50.11 kB / 0.5254 GB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.885e-05/0.4216, allocations: 8.25 kB / 0.5254 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001577/0.4232, allocations: 1.549 MB / 0.527 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.755e-06/0.4232, allocations: 0.7188 kB / 0.527 GB, free: 6.902 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009971/0.4242, allocations: 0.4953 MB / 0.5274 GB, free: 6.602 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002051/0.4244, allocations: 134.6 kB / 0.5276 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.384e-05/0.4245, allocations: 3.688 kB / 0.5276 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002615/0.4248, allocations: 21.33 kB / 0.5276 GB, free: 6.461 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.949e-05/0.4249, allocations: 23.36 kB / 0.5276 GB, free: 6.457 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.4249, allocations: 18.33 kB / 0.5276 GB, free: 6.445 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004165/0.4253, allocations: 279.9 kB / 0.5279 GB, free: 6.309 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.9e-07/0.4253, allocations: 0 / 0.5279 GB, free: 6.309 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005972/0.4259, allocations: 103.2 kB / 0.528 GB, free: 6.297 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.rotor.phi,dcm_ser.rotor.w,dcm_ser.motor.i,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 (24): * Single equations (assignments): 22 * 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.00255/0.4285, allocations: 1.32 MB / 0.5293 GB, free: 5.363 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009991/0.4295, allocations: 409 kB / 0.5297 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.4295, allocations: 0 / 0.5297 GB, free: 5.152 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004523/0.43, allocations: 256.1 kB / 0.5299 GB, free: 4.988 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007746/0.4308, allocations: 126.4 kB / 0.53 GB, free: 4.945 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006571/0.4374, allocations: 4.056 MB / 0.534 GB, free: 2.309 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005747/0.438, allocations: 0.856 MB / 0.5348 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000281/0.4383, allocations: 62.39 kB / 0.5349 GB, free: 1.574 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002676/0.4385, allocations: 163.1 kB / 0.5351 GB, free: 1.453 MB / 398.1 MB Notification: Performance of SimCode: time 7.12e-07/0.4386, allocations: 1.344 kB / 0.5351 GB, free: 1.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05175/0.4903, allocations: 10.94 MB / 0.5457 GB, free: 12.47 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.99/13.48, allocations: 12.08 kB / 0.5458 GB, free: 12.46 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_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_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)