Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_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-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_latest_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.00168/0.00168, allocations: 105.2 kB / 17.06 MB, free: 6.027 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.001943/0.001943, allocations: 196 kB / 18 MB, free: 5.105 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.408/1.408, 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-master/package.mo): time 0.1841/0.1841, allocations: 38.04 MB / 329.9 MB, free: 8.773 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001247/0.001247, allocations: 59.91 kB / 457.6 MB, free: 7.375 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3579/0.3592, allocations: 58.05 MB / 0.5036 GB, free: 7.504 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006958/0.3662, allocations: 5.176 MB / 0.5087 GB, free: 3.93 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.00274/0.369, allocations: 1.98 MB / 0.5106 GB, free: 2.531 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003481/0.3693, allocations: 14.88 kB / 0.5106 GB, free: 2.527 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004881/0.3698, allocations: 146.2 kB / 0.5107 GB, free: 2.445 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008122/0.3707, allocations: 360.9 kB / 0.5111 GB, free: 2.23 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005068/0.3712, allocations: 216.6 kB / 0.5113 GB, free: 2.113 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008386/0.3721, allocations: 0.6971 MB / 0.512 GB, free: 1.781 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005322/0.3726, allocations: 437.1 kB / 0.5124 GB, free: 1.602 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004535/0.3731, allocations: 301.4 kB / 0.5127 GB, free: 1.461 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004387/0.3735, allocations: 283.2 kB / 0.513 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.094e-05/0.3736, allocations: 46.12 kB / 0.513 GB, free: 1.336 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002269/0.3738, allocations: 94.92 kB / 0.5131 GB, free: 1.32 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.374, allocations: 157.1 kB / 0.5132 GB, free: 1.234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002953/0.3743, allocations: 271.2 kB / 0.5135 GB, free: 1.066 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00101/0.3754, allocations: 0.6514 MB / 0.5141 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.212e-06/0.3754, allocations: 0 / 0.5141 GB, free: 0.8008 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.3754, allocations: 3.938 kB / 0.5141 GB, free: 0.7969 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.097e-05/0.3754, allocations: 1.281 kB / 0.5141 GB, free: 0.7969 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.001579/0.377, allocations: 0.8356 MB / 0.515 GB, free: 176 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.529e-05/0.377, allocations: 13.77 kB / 0.515 GB, free: 172 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.416e-05/0.3771, allocations: 75.86 kB / 0.515 GB, free: 108 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001264/0.3773, allocations: 55.97 kB / 0.5151 GB, free: 80 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008067/0.3781, allocations: 493.2 kB / 0.5156 GB, free: 15.73 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.751e-05/0.3781, allocations: 28.94 kB / 0.5156 GB, free: 15.71 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.307e-05/0.3782, allocations: 40.94 kB / 0.5156 GB, free: 15.7 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000706/0.3789, allocations: 449.6 kB / 0.5161 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.3789, allocations: 5.656 kB / 0.5161 GB, free: 15.45 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.443e-05/0.379, allocations: 25.05 kB / 0.5161 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.03e-05/0.379, allocations: 8.5 kB / 0.5161 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004869/0.3795, allocations: 283.4 kB / 0.5164 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002483/0.382, allocations: 1.843 MB / 0.5182 GB, free: 13.89 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006058/0.3826, allocations: 258.9 kB / 0.5184 GB, free: 13.74 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001631/0.3828, allocations: 87.61 kB / 0.5185 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.7e-05/0.3828, allocations: 6.969 kB / 0.5185 GB, free: 13.69 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003108/0.3832, allocations: 174.3 kB / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.473e-06/0.3832, allocations: 0 / 0.5187 GB, free: 13.58 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001828/0.385, allocations: 0.9114 MB / 0.5196 GB, free: 12.96 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.223e-05/0.3851, allocations: 132.3 kB / 0.5197 GB, free: 12.81 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005174/0.3856, allocations: 404.9 kB / 0.5201 GB, free: 12.61 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3857, allocations: 35.58 kB / 0.5201 GB, free: 12.57 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001741/0.3858, allocations: 260.4 kB / 0.5204 GB, free: 12.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.655e-05/0.3859, allocations: 94.25 kB / 0.5204 GB, free: 12.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.386, allocations: 76.08 kB / 0.5205 GB, free: 12.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001313/0.3862, allocations: 352.8 kB / 0.5209 GB, free: 11.9 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001614/0.3863, allocations: 82.06 kB / 0.5209 GB, free: 11.87 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002469/0.3866, allocations: 215.8 kB / 0.5211 GB, free: 11.68 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004076/0.387, allocations: 315.3 kB / 0.5214 GB, free: 11.43 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.455e-06/0.387, allocations: 5.094 kB / 0.5214 GB, free: 11.42 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008618/0.3879, allocations: 430.8 kB / 0.5219 GB, free: 11.23 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.3879, allocations: 6.844 kB / 0.5219 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.036e-06/0.3879, allocations: 10.31 kB / 0.5219 GB, free: 11.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004221/0.3884, allocations: 86.48 kB / 0.522 GB, free: 11.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002312/0.3886, allocations: 67.28 kB / 0.522 GB, free: 11.2 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00232/0.3909, allocations: 2.012 MB / 0.524 GB, free: 9.438 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002845/0.3912, allocations: 22.53 kB / 0.524 GB, free: 9.43 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.155e-05/0.3913, allocations: 21.7 kB / 0.524 GB, free: 9.422 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.0002362/0.3915, allocations: 194.1 kB / 0.5242 GB, free: 9.262 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.997e-05/0.3916, allocations: 44.08 kB / 0.5242 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006126/0.3922, allocations: 296.4 kB / 0.5245 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.3922, allocations: 4.125 kB / 0.5245 GB, free: 9.098 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.3922, allocations: 5.375 kB / 0.5245 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.072e-06/0.3923, allocations: 1.875 kB / 0.5245 GB, free: 9.094 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001257/0.3935, allocations: 0.7632 MB / 0.5253 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.597e-06/0.3935, allocations: 1.062 kB / 0.5253 GB, free: 8.598 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002555/0.3938, allocations: 44.38 kB / 0.5253 GB, free: 8.594 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002347/0.3941, allocations: 50.72 kB / 0.5254 GB, free: 8.578 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.742e-05/0.3941, allocations: 6.391 kB / 0.5254 GB, free: 8.574 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001345/0.3954, allocations: 1.554 MB / 0.5269 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.3955, allocations: 0.9688 kB / 0.5269 GB, free: 7.078 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007838/0.3962, allocations: 0.4897 MB / 0.5274 GB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001649/0.3964, allocations: 131.7 kB / 0.5275 GB, free: 6.656 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.122e-05/0.3965, allocations: 7.562 kB / 0.5275 GB, free: 6.652 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002346/0.3967, allocations: 18.91 kB / 0.5275 GB, free: 6.645 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.713e-05/0.3968, allocations: 25.77 kB / 0.5276 GB, free: 6.637 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3968, allocations: 18.83 kB / 0.5276 GB, free: 6.625 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003459/0.3972, allocations: 279.2 kB / 0.5278 GB, free: 6.488 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.3972, allocations: 0 / 0.5278 GB, free: 6.488 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006233/0.3978, allocations: 103.2 kB / 0.5279 GB, free: 6.477 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.00183/0.3997, allocations: 1.319 MB / 0.5292 GB, free: 5.547 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001053/0.4007, allocations: 413.1 kB / 0.5296 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.326e-06/0.4008, allocations: 0 / 0.5296 GB, free: 5.332 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004192/0.4012, allocations: 243.7 kB / 0.5299 GB, free: 5.18 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000854/0.402, allocations: 137.2 kB / 0.53 GB, free: 5.133 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006076/0.4081, allocations: 4.039 MB / 0.5339 GB, free: 2.512 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004651/0.4086, allocations: 0.8553 MB / 0.5348 GB, free: 1.797 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000279/0.4089, allocations: 64.31 kB / 0.5348 GB, free: 1.777 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002387/0.4092, allocations: 163.8 kB / 0.535 GB, free: 1.656 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4092, allocations: 0 / 0.535 GB, free: 1.656 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04169/0.4509, allocations: 11.13 MB / 0.5459 GB, free: 12.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.46, allocations: 4 kB / 0.5459 GB, free: 12.5 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)