Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001387/0.001386, allocations: 109.4 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.001547/0.001547, 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.403/1.403, 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.1803/0.1803, allocations: 38.05 MB / 329.9 MB, free: 8.688 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001431/0.001431, allocations: 59.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3265/0.328, allocations: 58.06 MB / 0.5036 GB, free: 7.445 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.007412/0.3355, allocations: 5.254 MB / 0.5087 GB, free: 3.812 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002868/0.3384, allocations: 1.571 MB / 0.5103 GB, free: 2.688 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005231/0.3389, allocations: 15.69 kB / 0.5103 GB, free: 2.684 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005744/0.3395, allocations: 124.6 kB / 0.5104 GB, free: 2.613 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001138/0.3407, allocations: 324.9 kB / 0.5107 GB, free: 2.418 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004772/0.3412, allocations: 154.1 kB / 0.5109 GB, free: 2.332 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009003/0.3421, allocations: 0.6962 MB / 0.5115 GB, free: 2 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005741/0.3427, allocations: 450.3 kB / 0.512 GB, free: 1.816 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000447/0.3432, allocations: 291.9 kB / 0.5123 GB, free: 1.68 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004342/0.3436, allocations: 291.3 kB / 0.5125 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.076e-05/0.3437, allocations: 46.09 kB / 0.5126 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.132e-05/0.3438, allocations: 45.81 kB / 0.5126 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001517/0.3439, allocations: 151.5 kB / 0.5128 GB, free: 1.477 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002451/0.3442, allocations: 269.4 kB / 0.513 GB, free: 1.316 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007232/0.3449, allocations: 0.598 MB / 0.5136 GB, free: 1.074 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.018e-06/0.3449, allocations: 0 / 0.5136 GB, free: 1.074 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.3449, allocations: 0 / 0.5136 GB, free: 1.074 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.048e-05/0.345, allocations: 0 / 0.5136 GB, free: 1.074 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001278/0.3462, allocations: 0.7999 MB / 0.5144 GB, free: 472 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.068e-05/0.3463, allocations: 13.83 kB / 0.5144 GB, free: 468 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.167e-05/0.3464, allocations: 83.33 kB / 0.5145 GB, free: 400 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.24e-05/0.3465, allocations: 55.75 kB / 0.5145 GB, free: 372 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006717/0.3472, allocations: 468.1 kB / 0.515 GB, free: 36 kB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.3473, allocations: 64.23 kB / 0.515 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.717e-05/0.3474, allocations: 44.89 kB / 0.5151 GB, free: 15.97 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008493/0.3482, allocations: 0.5014 MB / 0.5156 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.021e-05/0.3483, allocations: 1.25 kB / 0.5156 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.613e-05/0.3483, allocations: 16.89 kB / 0.5156 GB, free: 15.69 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.492e-05/0.3483, allocations: 18.95 kB / 0.5156 GB, free: 15.68 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006551/0.349, allocations: 340.3 kB / 0.5159 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002631/0.3516, allocations: 1.964 MB / 0.5179 GB, free: 14.04 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005152/0.3522, allocations: 230.6 kB / 0.5181 GB, free: 13.9 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000263/0.3525, allocations: 93.48 kB / 0.5182 GB, free: 13.86 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.3525, allocations: 6.188 kB / 0.5182 GB, free: 13.85 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.007e-05/0.3525, allocations: 42.56 kB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of pre-optimization done (n=20): time 2.144e-06/0.3526, allocations: 0 / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of matching and sorting (n=22): time 0.001934/0.3545, allocations: 0.8541 MB / 0.519 GB, free: 13.21 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.609e-05/0.3546, allocations: 107.5 kB / 0.5191 GB, free: 13.09 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003682/0.3549, allocations: 332.2 kB / 0.5195 GB, free: 12.91 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.669e-05/0.355, allocations: 30.8 kB / 0.5195 GB, free: 12.88 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002159/0.3552, allocations: 277.8 kB / 0.5198 GB, free: 12.65 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.411e-05/0.3553, allocations: 84.62 kB / 0.5198 GB, free: 12.58 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001036/0.3554, allocations: 67.22 kB / 0.5199 GB, free: 12.54 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001372/0.3555, allocations: 346 kB / 0.5202 GB, free: 12.21 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002214/0.3558, allocations: 84.55 kB / 0.5203 GB, free: 12.18 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003086/0.3561, allocations: 212.1 kB / 0.5205 GB, free: 11.99 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001267/0.3574, allocations: 0.5535 MB / 0.5211 GB, free: 11.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.3574, allocations: 1.125 kB / 0.5211 GB, free: 11.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0009094/0.3583, allocations: 427.6 kB / 0.5215 GB, free: 11.4 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.739e-05/0.3583, allocations: 6.688 kB / 0.5215 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.578e-06/0.3583, allocations: 3.938 kB / 0.5215 GB, free: 11.4 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003212/0.3587, allocations: 83.22 kB / 0.5216 GB, free: 11.38 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000247/0.3589, allocations: 66.69 kB / 0.5216 GB, free: 11.37 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001962/0.3609, allocations: 1.923 MB / 0.5235 GB, free: 9.629 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000265/0.3612, allocations: 14.88 kB / 0.5235 GB, free: 9.625 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.779e-05/0.3612, allocations: 22.5 kB / 0.5235 GB, free: 9.617 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * 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.0002467/0.3615, allocations: 190.2 kB / 0.5237 GB, free: 9.461 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.714e-05/0.3616, allocations: 40.94 kB / 0.5237 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.794e-05/0.3616, allocations: 38.02 kB / 0.5238 GB, free: 9.414 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.338e-06/0.3616, allocations: 7.422 kB / 0.5238 GB, free: 9.41 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.66e-06/0.3617, allocations: 5.125 kB / 0.5238 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.479e-06/0.3617, allocations: 2.203 kB / 0.5238 GB, free: 9.406 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.3629, allocations: 0.7759 MB / 0.5246 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.529e-06/0.3629, allocations: 2.125 kB / 0.5246 GB, free: 8.859 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002474/0.3632, allocations: 44.02 kB / 0.5246 GB, free: 8.855 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001022/0.3633, allocations: 27.08 kB / 0.5246 GB, free: 8.84 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.871e-05/0.3633, allocations: 7.5 kB / 0.5246 GB, free: 8.836 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009265/0.3642, allocations: 1.382 MB / 0.526 GB, free: 7.418 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.097e-06/0.3643, allocations: 5.312 kB / 0.526 GB, free: 7.414 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007537/0.365, allocations: 0.5062 MB / 0.5265 GB, free: 7.066 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001326/0.3652, allocations: 117.4 kB / 0.5266 GB, free: 6.949 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.451e-05/0.3652, allocations: 6.719 kB / 0.5266 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.3654, allocations: 6.281 kB / 0.5266 GB, free: 6.945 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.292e-05/0.3655, allocations: 29.56 kB / 0.5266 GB, free: 6.93 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.489e-05/0.3655, allocations: 6.203 kB / 0.5266 GB, free: 6.93 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002497/0.3658, allocations: 232.8 kB / 0.5269 GB, free: 6.805 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3658, allocations: 0 / 0.5269 GB, free: 6.805 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005732/0.3664, allocations: 90.44 kB / 0.5269 GB, free: 6.793 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (21): * Single equations (assignments): 19 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001039/0.3674, allocations: 1.036 MB / 0.528 GB, free: 5.926 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0007847/0.3682, allocations: 377.4 kB / 0.5283 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.3682, allocations: 1.375 kB / 0.5283 GB, free: 5.715 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000349/0.3686, allocations: 213.1 kB / 0.5285 GB, free: 5.574 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006869/0.3693, allocations: 109.9 kB / 0.5286 GB, free: 5.539 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005126/0.3744, allocations: 3.706 MB / 0.5322 GB, free: 2.98 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004552/0.3749, allocations: 0.8405 MB / 0.5331 GB, free: 2.27 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002102/0.3751, allocations: 51.03 kB / 0.5331 GB, free: 2.254 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002066/0.3753, allocations: 141 kB / 0.5333 GB, free: 2.148 MB / 398.1 MB Notification: Performance of SimCode: time 4.41e-07/0.3753, allocations: 0 / 0.5333 GB, free: 2.148 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03793/0.4133, allocations: 8.495 MB / 0.5415 GB, free: 14.79 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/12.54, allocations: 8.188 kB / 0.5416 GB, free: 14.79 MB / 414.1 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & python3 -m fmpy simulate --output-file PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0012 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)