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.001513/0.001513, allocations: 113 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.001729/0.001729, allocations: 200 kB / 18.01 MB, free: 5.047 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.423/1.423, allocations: 222.9 MB / 241.7 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1787/0.1787, allocations: 38.04 MB / 329.9 MB, free: 8.68 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 63.89 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3464/0.3477, allocations: 58.06 MB / 0.5036 GB, free: 7.457 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.00629/0.3541, allocations: 5.169 MB / 0.5087 GB, free: 3.891 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003141/0.3572, allocations: 1.983 MB / 0.5106 GB, free: 2.488 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005411/0.3578, allocations: 17.81 kB / 0.5106 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006593/0.3585, allocations: 143.2 kB / 0.5107 GB, free: 2.402 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001246/0.3598, allocations: 358.7 kB / 0.5111 GB, free: 2.191 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007523/0.3606, allocations: 222.6 kB / 0.5113 GB, free: 2.066 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001194/0.3618, allocations: 0.6975 MB / 0.512 GB, free: 1.734 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006244/0.3624, allocations: 443.8 kB / 0.5124 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005672/0.363, allocations: 299.3 kB / 0.5127 GB, free: 1.41 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004898/0.3635, allocations: 287 kB / 0.513 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.271e-05/0.3636, allocations: 46.06 kB / 0.513 GB, free: 1.281 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000286/0.3639, allocations: 95.38 kB / 0.5131 GB, free: 1.266 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001955/0.3641, allocations: 153 kB / 0.5132 GB, free: 1.184 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003483/0.3644, allocations: 267.5 kB / 0.5135 GB, free: 1.02 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001214/0.3656, allocations: 0.657 MB / 0.5141 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.3657, allocations: 2.172 kB / 0.5141 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.874e-06/0.3657, allocations: 0 / 0.5141 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.256e-05/0.3657, allocations: 0 / 0.5141 GB, free: 0.7461 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.001848/0.3676, allocations: 0.857 MB / 0.515 GB, free: 104 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.105e-05/0.3676, allocations: 13.52 kB / 0.515 GB, free: 100 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.96e-05/0.3677, allocations: 72.31 kB / 0.5151 GB, free: 40 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001262/0.3678, allocations: 60.36 kB / 0.5151 GB, free: 8 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001029/0.3689, allocations: 488.7 kB / 0.5156 GB, free: 15.66 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.843e-05/0.3689, allocations: 29.03 kB / 0.5156 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001031/0.369, allocations: 39.19 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008719/0.3699, allocations: 460.5 kB / 0.5161 GB, free: 15.38 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.26e-05/0.37, allocations: 13.42 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.486e-05/0.37, allocations: 20.95 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.929e-05/0.37, allocations: 8.75 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005316/0.3706, allocations: 278.8 kB / 0.5164 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003006/0.3736, allocations: 1.854 MB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007747/0.3744, allocations: 240.8 kB / 0.5184 GB, free: 13.67 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002188/0.3746, allocations: 87.89 kB / 0.5185 GB, free: 13.62 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.804e-05/0.3747, allocations: 10.94 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000419/0.3751, allocations: 179 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 2.184e-06/0.3751, allocations: 0 / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.002516/0.3776, allocations: 0.928 MB / 0.5196 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001247/0.3778, allocations: 132.6 kB / 0.5197 GB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007415/0.3785, allocations: 408.9 kB / 0.5201 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.175e-05/0.3786, allocations: 30.73 kB / 0.5202 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002952/0.3789, allocations: 269.3 kB / 0.5204 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001246/0.379, allocations: 95.25 kB / 0.5205 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.3792, allocations: 74.69 kB / 0.5206 GB, free: 12.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002179/0.3794, allocations: 353.1 kB / 0.5209 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001866/0.3796, allocations: 83.12 kB / 0.521 GB, free: 11.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000407/0.38, allocations: 217.1 kB / 0.5212 GB, free: 11.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000502/0.3805, allocations: 314.2 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.668e-06/0.3805, allocations: 0.9375 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.001153/0.3817, allocations: 426.2 kB / 0.5219 GB, free: 11.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.3817, allocations: 7.781 kB / 0.5219 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.339e-05/0.3818, allocations: 4.562 kB / 0.5219 GB, free: 11.13 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000509/0.3823, allocations: 104.1 kB / 0.522 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002711/0.3826, allocations: 63.17 kB / 0.5221 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003663/0.3862, allocations: 2.015 MB / 0.524 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003332/0.3866, allocations: 19 kB / 0.5241 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.685e-05/0.3866, allocations: 23.12 kB / 0.5241 GB, free: 9.316 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.0003599/0.387, allocations: 190.3 kB / 0.5243 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.986e-05/0.3871, allocations: 43.41 kB / 0.5243 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006851/0.3878, allocations: 299 kB / 0.5246 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.392e-06/0.3878, allocations: 4.734 kB / 0.5246 GB, free: 8.992 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.3878, allocations: 5.375 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.396e-06/0.3878, allocations: 2.5 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001453/0.3893, allocations: 0.7708 MB / 0.5254 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.636e-06/0.3893, allocations: 1.375 kB / 0.5254 GB, free: 8.484 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002623/0.3896, allocations: 44.41 kB / 0.5254 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002283/0.3898, allocations: 52.53 kB / 0.5254 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.914e-05/0.3899, allocations: 8.203 kB / 0.5255 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001657/0.3915, allocations: 1.546 MB / 0.527 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.477e-06/0.3915, allocations: 1.531 kB / 0.527 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001131/0.3927, allocations: 0.4934 MB / 0.5274 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002105/0.3929, allocations: 132 kB / 0.5276 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.007e-05/0.393, allocations: 11.16 kB / 0.5276 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000242/0.3932, allocations: 18.5 kB / 0.5276 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001017/0.3933, allocations: 22.83 kB / 0.5276 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.821e-05/0.3934, allocations: 10.59 kB / 0.5276 GB, free: 6.52 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0005583/0.3939, allocations: 282 kB / 0.5279 GB, free: 6.379 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3939, allocations: 1.375 kB / 0.5279 GB, free: 6.379 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006923/0.3946, allocations: 103.1 kB / 0.528 GB, free: 6.367 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.00235/0.397, allocations: 1.331 MB / 0.5293 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001089/0.3981, allocations: 407.7 kB / 0.5297 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.3981, allocations: 1.188 kB / 0.5297 GB, free: 5.219 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004899/0.3986, allocations: 255.9 kB / 0.5299 GB, free: 5.055 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008893/0.3995, allocations: 115.7 kB / 0.53 GB, free: 5.02 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008589/0.4081, allocations: 4.056 MB / 0.534 GB, free: 2.379 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006132/0.4088, allocations: 0.8549 MB / 0.5348 GB, free: 1.664 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003428/0.4091, allocations: 63.27 kB / 0.5349 GB, free: 1.645 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002885/0.4094, allocations: 167.1 kB / 0.5351 GB, free: 1.52 MB / 398.1 MB Notification: Performance of SimCode: time 2.705e-06/0.4095, allocations: 1.75 kB / 0.5351 GB, free: 1.52 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03908/0.4486, allocations: 10.95 MB / 0.5458 GB, free: 12.55 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.57/13.02, allocations: 15.52 kB / 0.5458 GB, free: 12.54 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)