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.001318/0.001318, allocations: 114.2 kB / 17.06 MB, free: 6.016 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.001235/0.001235, allocations: 189.4 kB / 18 MB, free: 5.098 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.36/1.36, allocations: 222.9 MB / 241.7 MB, free: 15.19 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0/package.mo): time 0.1752/0.1752, allocations: 38.03 MB / 329.9 MB, free: 8.719 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001794/0.001794, allocations: 67.91 kB / 457.6 MB, free: 7.359 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3112/0.313, allocations: 58.06 MB / 0.5036 GB, free: 7.441 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.007593/0.3207, allocations: 5.167 MB / 0.5087 GB, free: 3.875 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.004164/0.3249, allocations: 1.975 MB / 0.5106 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005768/0.3255, allocations: 22.34 kB / 0.5106 GB, free: 2.469 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007027/0.3262, allocations: 142 kB / 0.5107 GB, free: 2.391 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001223/0.3275, allocations: 358.4 kB / 0.5111 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006282/0.3282, allocations: 217.3 kB / 0.5113 GB, free: 2.059 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009955/0.3292, allocations: 0.7048 MB / 0.512 GB, free: 1.719 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005488/0.3297, allocations: 443 kB / 0.5124 GB, free: 1.535 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004764/0.3302, allocations: 288 kB / 0.5127 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004236/0.3306, allocations: 287.2 kB / 0.5129 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.833e-05/0.3307, allocations: 47.44 kB / 0.513 GB, free: 1.27 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002261/0.331, allocations: 93.58 kB / 0.5131 GB, free: 1.254 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001496/0.3311, allocations: 154 kB / 0.5132 GB, free: 1.172 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002294/0.3314, allocations: 262.5 kB / 0.5135 GB, free: 1.012 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008342/0.3322, allocations: 0.6585 MB / 0.5141 GB, free: 0.7383 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.3322, allocations: 4 kB / 0.5141 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.274e-06/0.3322, allocations: 0.7031 kB / 0.5141 GB, free: 0.7344 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.879e-06/0.3322, allocations: 0 / 0.5141 GB, free: 0.7344 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.001447/0.3337, allocations: 0.8559 MB / 0.515 GB, free: 92 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.911e-05/0.3337, allocations: 12.52 kB / 0.515 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.268e-05/0.3338, allocations: 76.22 kB / 0.515 GB, free: 24 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000121/0.3339, allocations: 57.61 kB / 0.5151 GB, free: 15.99 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008257/0.3348, allocations: 492.5 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.365e-05/0.3348, allocations: 28.38 kB / 0.5156 GB, free: 15.63 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.266e-05/0.3349, allocations: 40.92 kB / 0.5156 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007592/0.3357, allocations: 454.5 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.048e-05/0.3357, allocations: 5.281 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.661e-05/0.3357, allocations: 21.09 kB / 0.5161 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.3358, allocations: 12.72 kB / 0.5161 GB, free: 15.34 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004715/0.3362, allocations: 278.5 kB / 0.5164 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002546/0.3388, allocations: 1.852 MB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006026/0.3394, allocations: 241.1 kB / 0.5184 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001786/0.3396, allocations: 86.03 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.375e-05/0.3397, allocations: 8.078 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003419/0.34, allocations: 171.1 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.883e-06/0.34, allocations: 0.625 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001866/0.3419, allocations: 0.9349 MB / 0.5196 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.83e-05/0.342, allocations: 136.3 kB / 0.5197 GB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005562/0.3426, allocations: 401.8 kB / 0.5201 GB, free: 12.51 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.344e-05/0.3426, allocations: 34.77 kB / 0.5201 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002279/0.3429, allocations: 270.1 kB / 0.5204 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.625e-05/0.343, allocations: 94.02 kB / 0.5205 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001337/0.3431, allocations: 79.66 kB / 0.5205 GB, free: 12.12 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001799/0.3433, allocations: 353.2 kB / 0.5209 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001715/0.3435, allocations: 82.97 kB / 0.521 GB, free: 11.76 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003135/0.3438, allocations: 217.5 kB / 0.5212 GB, free: 11.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004684/0.3443, allocations: 314.6 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.357e-06/0.3443, allocations: 1.406 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0009553/0.3453, allocations: 437.1 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.277e-05/0.3453, allocations: 7.438 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.424e-05/0.3453, allocations: 4.719 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004596/0.3458, allocations: 97.81 kB / 0.522 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000243/0.346, allocations: 66.62 kB / 0.5221 GB, free: 11.08 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002641/0.3487, allocations: 2.02 MB / 0.524 GB, free: 9.316 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000341/0.349, allocations: 17.61 kB / 0.524 GB, free: 9.312 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.942e-05/0.3491, allocations: 17.62 kB / 0.5241 GB, free: 9.309 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.0002973/0.3494, allocations: 200.1 kB / 0.5243 GB, free: 9.145 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.765e-05/0.3495, allocations: 43.06 kB / 0.5243 GB, free: 9.121 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006429/0.3501, allocations: 298.7 kB / 0.5246 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.819e-06/0.3501, allocations: 2.969 kB / 0.5246 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.929e-06/0.3501, allocations: 1.562 kB / 0.5246 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3502, allocations: 4.547 kB / 0.5246 GB, free: 8.98 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001171/0.3513, allocations: 0.7635 MB / 0.5253 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.028e-06/0.3514, allocations: 2.219 kB / 0.5253 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.3516, allocations: 39.67 kB / 0.5254 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002426/0.3518, allocations: 56.38 kB / 0.5254 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.568e-05/0.3519, allocations: 8.062 kB / 0.5254 GB, free: 8.453 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001406/0.3533, allocations: 1.55 MB / 0.527 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.124e-06/0.3533, allocations: 1.375 kB / 0.527 GB, free: 6.961 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007944/0.3541, allocations: 0.4942 MB / 0.5274 GB, free: 6.66 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001561/0.3543, allocations: 135 kB / 0.5276 GB, free: 6.531 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.536e-05/0.3543, allocations: 11.25 kB / 0.5276 GB, free: 6.523 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002227/0.3546, allocations: 22.62 kB / 0.5276 GB, free: 6.512 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.63e-05/0.3546, allocations: 25.52 kB / 0.5276 GB, free: 6.504 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.305e-05/0.3547, allocations: 11.69 kB / 0.5276 GB, free: 6.5 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003484/0.355, allocations: 278.2 kB / 0.5279 GB, free: 6.363 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.355, allocations: 1.625 kB / 0.5279 GB, free: 6.363 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.000586/0.3556, allocations: 103.2 kB / 0.528 GB, free: 6.352 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.002325/0.358, allocations: 1.321 MB / 0.5293 GB, free: 5.422 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009021/0.3589, allocations: 408.3 kB / 0.5297 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.625e-06/0.3589, allocations: 0 / 0.5297 GB, free: 5.211 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004073/0.3593, allocations: 255.8 kB / 0.5299 GB, free: 5.047 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007171/0.36, allocations: 115.5 kB / 0.53 GB, free: 5.012 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005801/0.3658, allocations: 4.064 MB / 0.534 GB, free: 2.367 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005425/0.3664, allocations: 0.86 MB / 0.5348 GB, free: 1.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002906/0.3667, allocations: 64.11 kB / 0.5349 GB, free: 1.629 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002414/0.367, allocations: 158.3 kB / 0.5351 GB, free: 1.512 MB / 398.1 MB Notification: Performance of SimCode: time 5.81e-07/0.367, allocations: 4 kB / 0.5351 GB, free: 1.508 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04262/0.4096, allocations: 10.94 MB / 0.5457 GB, free: 12.57 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.51/12.92, allocations: 13.2 kB / 0.5457 GB, free: 12.56 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)