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.001221/0.001225, allocations: 105.8 kB / 17.06 MB, free: 6.023 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.001133/0.001133, allocations: 195 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.438/1.438, allocations: 222.9 MB / 241.7 MB, free: 15.22 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1802/0.1802, allocations: 38.04 MB / 329.9 MB, free: 8.785 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 59.91 kB / 457.6 MB, free: 7.398 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3574/0.3588, allocations: 58.05 MB / 0.5036 GB, free: 7.293 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser): time 0.006877/0.3657, allocations: 5.168 MB / 0.5086 GB, free: 3.73 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002991/0.3688, allocations: 1.986 MB / 0.5106 GB, free: 2.328 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003298/0.3691, allocations: 19 kB / 0.5106 GB, free: 2.32 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005373/0.3697, allocations: 146.4 kB / 0.5107 GB, free: 2.238 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008911/0.3706, allocations: 360.3 kB / 0.5111 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005459/0.3712, allocations: 217.3 kB / 0.5113 GB, free: 1.906 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.000822/0.372, allocations: 0.6977 MB / 0.512 GB, free: 1.574 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005063/0.3725, allocations: 438.1 kB / 0.5124 GB, free: 1.402 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004073/0.373, allocations: 297.6 kB / 0.5127 GB, free: 1.262 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003793/0.3733, allocations: 283.4 kB / 0.5129 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.266e-05/0.3734, allocations: 46.34 kB / 0.513 GB, free: 1.137 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001982/0.3736, allocations: 98.53 kB / 0.5131 GB, free: 1.117 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001432/0.3738, allocations: 154.1 kB / 0.5132 GB, free: 1.035 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002263/0.374, allocations: 271.1 kB / 0.5135 GB, free: 0.8672 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007278/0.3748, allocations: 0.6497 MB / 0.5141 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3748, allocations: 1.125 kB / 0.5141 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.132e-06/0.3748, allocations: 0 / 0.5141 GB, free: 0.6016 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.004e-05/0.3748, allocations: 0.7031 kB / 0.5141 GB, free: 0.6016 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.001398/0.3762, allocations: 0.8438 MB / 0.515 GB, free: 15.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.968e-05/0.3762, allocations: 13.33 kB / 0.515 GB, free: 15.96 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.489e-05/0.3763, allocations: 77.14 kB / 0.515 GB, free: 15.9 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001047/0.3765, allocations: 55.59 kB / 0.5151 GB, free: 15.87 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000823/0.3773, allocations: 489.5 kB / 0.5156 GB, free: 15.52 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.14e-05/0.3773, allocations: 31.31 kB / 0.5156 GB, free: 15.51 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.074e-05/0.3774, allocations: 37.8 kB / 0.5156 GB, free: 15.5 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007396/0.3782, allocations: 454.4 kB / 0.5161 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.07e-05/0.3782, allocations: 5.062 kB / 0.5161 GB, free: 15.24 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3782, allocations: 15.88 kB / 0.5161 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.122e-05/0.3782, allocations: 9.969 kB / 0.5161 GB, free: 15.23 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004844/0.3787, allocations: 279.1 kB / 0.5164 GB, free: 15.13 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002395/0.3811, allocations: 1.851 MB / 0.5182 GB, free: 13.68 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005737/0.3817, allocations: 261.7 kB / 0.5184 GB, free: 13.54 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001632/0.3819, allocations: 87.02 kB / 0.5185 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.431e-05/0.3819, allocations: 6.875 kB / 0.5185 GB, free: 13.48 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003296/0.3823, allocations: 174.3 kB / 0.5187 GB, free: 13.37 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.673e-06/0.3823, allocations: 0.5625 kB / 0.5187 GB, free: 13.37 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001789/0.3841, allocations: 0.9102 MB / 0.5196 GB, free: 12.76 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.243e-05/0.3842, allocations: 137.3 kB / 0.5197 GB, free: 12.6 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005089/0.3847, allocations: 408.8 kB / 0.5201 GB, free: 12.39 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.756e-05/0.3848, allocations: 30.83 kB / 0.5201 GB, free: 12.36 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001935/0.385, allocations: 265.8 kB / 0.5204 GB, free: 12.14 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.517e-05/0.385, allocations: 88.91 kB / 0.5204 GB, free: 12.07 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001263/0.3852, allocations: 75.3 kB / 0.5205 GB, free: 12.02 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001488/0.3853, allocations: 349.1 kB / 0.5208 GB, free: 11.69 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001631/0.3855, allocations: 83.84 kB / 0.5209 GB, free: 11.66 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002606/0.3858, allocations: 216.9 kB / 0.5211 GB, free: 11.47 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004199/0.3862, allocations: 314 kB / 0.5214 GB, free: 11.22 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.3862, allocations: 2.062 kB / 0.5214 GB, free: 11.22 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008761/0.3871, allocations: 431.6 kB / 0.5218 GB, free: 11.03 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.781e-05/0.3871, allocations: 11.25 kB / 0.5219 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.536e-06/0.3871, allocations: 3.906 kB / 0.5219 GB, free: 11.03 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004045/0.3875, allocations: 91.14 kB / 0.522 GB, free: 11.01 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002295/0.3878, allocations: 69.55 kB / 0.522 GB, free: 11 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002344/0.3901, allocations: 1.998 MB / 0.524 GB, free: 9.246 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002964/0.3904, allocations: 22.86 kB / 0.524 GB, free: 9.238 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.777e-05/0.3905, allocations: 26.02 kB / 0.524 GB, free: 9.227 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.0002632/0.3908, allocations: 194.8 kB / 0.5242 GB, free: 9.066 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.19e-05/0.3908, allocations: 46.41 kB / 0.5242 GB, free: 9.039 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000645/0.3915, allocations: 306.1 kB / 0.5245 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.649e-06/0.3915, allocations: 2.594 kB / 0.5245 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.008e-06/0.3915, allocations: 1.562 kB / 0.5245 GB, free: 8.891 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.542e-06/0.3915, allocations: 6.594 kB / 0.5245 GB, free: 8.887 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001224/0.3928, allocations: 0.7592 MB / 0.5253 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.526e-06/0.3928, allocations: 1.75 kB / 0.5253 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002313/0.393, allocations: 40.39 kB / 0.5253 GB, free: 8.395 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002127/0.3932, allocations: 51.95 kB / 0.5254 GB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.3933, allocations: 12.22 kB / 0.5254 GB, free: 8.367 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001387/0.3947, allocations: 1.546 MB / 0.5269 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.963e-06/0.3947, allocations: 1.375 kB / 0.5269 GB, free: 6.879 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000797/0.3955, allocations: 0.4902 MB / 0.5274 GB, free: 6.582 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001598/0.3957, allocations: 135.9 kB / 0.5275 GB, free: 6.453 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.898e-05/0.3957, allocations: 11.44 kB / 0.5275 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002149/0.3959, allocations: 9.172 kB / 0.5275 GB, free: 6.445 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.808e-05/0.396, allocations: 23.53 kB / 0.5276 GB, free: 6.441 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.132e-05/0.396, allocations: 14.28 kB / 0.5276 GB, free: 6.434 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003253/0.3964, allocations: 278.6 kB / 0.5278 GB, free: 6.297 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.71e-07/0.3964, allocations: 0 / 0.5278 GB, free: 6.297 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0005528/0.3969, allocations: 103.2 kB / 0.5279 GB, free: 6.285 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.001947/0.3989, allocations: 1.343 MB / 0.5292 GB, free: 5.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009349/0.3998, allocations: 408.7 kB / 0.5296 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.497e-06/0.3999, allocations: 192 / 0.5296 GB, free: 5.125 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003915/0.4003, allocations: 247.7 kB / 0.5299 GB, free: 4.969 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007302/0.401, allocations: 126.5 kB / 0.53 GB, free: 4.926 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005982/0.407, allocations: 4.039 MB / 0.5339 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005099/0.4075, allocations: 0.853 MB / 0.5348 GB, free: 1.594 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002936/0.4078, allocations: 66.86 kB / 0.5348 GB, free: 1.57 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002142/0.4081, allocations: 160.2 kB / 0.535 GB, free: 1.453 MB / 398.1 MB Notification: Performance of SimCode: time 7.81e-07/0.4081, allocations: 0 / 0.535 GB, free: 1.453 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04461/0.4527, allocations: 11.13 MB / 0.5459 GB, free: 12.34 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.62, allocations: 1.062 kB / 0.5459 GB, free: 12.34 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)