Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.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_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",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.001517/0.001517, allocations: 111.9 kB / 17.06 MB, free: 6.004 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.001702/0.001702, allocations: 198.9 kB / 18 MB, free: 5.082 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.399/1.399, allocations: 222.9 MB / 241.7 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1767/0.1767, allocations: 38.03 MB / 329.9 MB, free: 8.746 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001306/0.001306, allocations: 63.89 kB / 457.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3639/0.3652, allocations: 58.05 MB / 0.5036 GB, free: 7.488 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.007553/0.3728, allocations: 5.7 MB / 0.5092 GB, free: 3.543 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003254/0.3761, allocations: 2.119 MB / 0.5112 GB, free: 2.051 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004078/0.3766, allocations: 20.78 kB / 0.5113 GB, free: 2.043 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005944/0.3772, allocations: 176 kB / 0.5114 GB, free: 1.941 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001056/0.3783, allocations: 422 kB / 0.5118 GB, free: 1.695 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006702/0.379, allocations: 246.8 kB / 0.5121 GB, free: 1.562 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001111/0.3801, allocations: 0.839 MB / 0.5129 GB, free: 1.168 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000634/0.3808, allocations: 499.1 kB / 0.5134 GB, free: 0.9688 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005433/0.3813, allocations: 365.3 kB / 0.5137 GB, free: 0.793 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004961/0.3818, allocations: 336.7 kB / 0.514 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 8.582e-05/0.3819, allocations: 54.34 kB / 0.5141 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002458/0.3822, allocations: 100.8 kB / 0.5142 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002004/0.3824, allocations: 182.4 kB / 0.5144 GB, free: 0.5391 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002617/0.3826, allocations: 307 kB / 0.5147 GB, free: 360 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0009253/0.3836, allocations: 0.7341 MB / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.3836, allocations: 0 / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.753e-06/0.3836, allocations: 1.062 kB / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.053e-05/0.3836, allocations: 0 / 0.5154 GB, free: 60 kB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 106 * Number of variables: 106 Notification: Performance of Generate backend data structure: time 0.001751/0.3854, allocations: 0.8987 MB / 0.5162 GB, free: 15.39 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.264e-05/0.3854, allocations: 12.95 kB / 0.5163 GB, free: 15.39 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001082/0.3855, allocations: 87.42 kB / 0.5163 GB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001257/0.3857, allocations: 63.47 kB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001026/0.3867, allocations: 0.524 MB / 0.5169 GB, free: 14.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.256e-05/0.3868, allocations: 38.05 kB / 0.517 GB, free: 14.9 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001197/0.3869, allocations: 41.7 kB / 0.517 GB, free: 14.89 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009685/0.3879, allocations: 0.5172 MB / 0.5175 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.058e-05/0.3879, allocations: 2.062 kB / 0.5175 GB, free: 14.61 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.086e-05/0.3879, allocations: 16.94 kB / 0.5175 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.924e-05/0.388, allocations: 16.77 kB / 0.5175 GB, free: 14.6 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000747/0.3888, allocations: 340.1 kB / 0.5179 GB, free: 14.47 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002919/0.3917, allocations: 2.052 MB / 0.5199 GB, free: 12.92 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004641/0.3922, allocations: 237 kB / 0.5201 GB, free: 12.78 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001413/0.3924, allocations: 83.55 kB / 0.5202 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.412e-05/0.3924, allocations: 3.906 kB / 0.5202 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000313/0.3927, allocations: 173.9 kB / 0.5203 GB, free: 12.62 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 1.923e-06/0.3927, allocations: 1.406 kB / 0.5203 GB, free: 12.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.001922/0.3947, allocations: 0.9221 MB / 0.5212 GB, free: 11.98 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.607e-05/0.3948, allocations: 133.5 kB / 0.5214 GB, free: 11.83 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005467/0.3953, allocations: 426.7 kB / 0.5218 GB, free: 11.62 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.245e-05/0.3953, allocations: 31.27 kB / 0.5218 GB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002298/0.3956, allocations: 295.4 kB / 0.5221 GB, free: 11.35 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.399e-05/0.3957, allocations: 90.22 kB / 0.5222 GB, free: 11.28 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001355/0.3958, allocations: 77.53 kB / 0.5222 GB, free: 11.23 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001747/0.396, allocations: 364.3 kB / 0.5226 GB, free: 10.89 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001784/0.3962, allocations: 83.09 kB / 0.5227 GB, free: 10.86 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002804/0.3965, allocations: 223 kB / 0.5229 GB, free: 10.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004506/0.3969, allocations: 322 kB / 0.5232 GB, free: 10.4 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.038e-06/0.397, allocations: 2.25 kB / 0.5232 GB, free: 10.4 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.000909/0.3979, allocations: 441 kB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.3979, allocations: 6.844 kB / 0.5236 GB, free: 10.21 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3979, allocations: 8.375 kB / 0.5236 GB, free: 10.2 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004529/0.3984, allocations: 106 kB / 0.5237 GB, free: 10.17 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000253/0.3986, allocations: 67.88 kB / 0.5238 GB, free: 10.16 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002319/0.401, allocations: 1.825 MB / 0.5256 GB, free: 8.559 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003049/0.4013, allocations: 23.33 kB / 0.5256 GB, free: 8.551 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3e-05/0.4013, allocations: 18.31 kB / 0.5256 GB, free: 8.547 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 19 * 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 (40): * Single equations (assignments): 39 * 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.0002943/0.4016, allocations: 204.1 kB / 0.5258 GB, free: 8.383 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.155e-05/0.4017, allocations: 49.89 kB / 0.5259 GB, free: 8.355 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006062/0.4023, allocations: 285.1 kB / 0.5261 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.771e-06/0.4023, allocations: 3.438 kB / 0.5261 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.689e-06/0.4024, allocations: 1.094 kB / 0.5261 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.203e-06/0.4024, allocations: 2.734 kB / 0.5261 GB, free: 8.215 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001354/0.4037, allocations: 0.7773 MB / 0.5269 GB, free: 7.719 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.34e-06/0.4037, allocations: 3.938 kB / 0.5269 GB, free: 7.715 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002751/0.404, allocations: 50.5 kB / 0.5269 GB, free: 7.707 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002152/0.4042, allocations: 52.61 kB / 0.527 GB, free: 7.688 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.666e-05/0.4043, allocations: 7.75 kB / 0.527 GB, free: 7.684 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001593/0.4059, allocations: 1.547 MB / 0.5285 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.4059, allocations: 1.25 kB / 0.5285 GB, free: 6.199 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009668/0.4069, allocations: 484.9 kB / 0.529 GB, free: 5.902 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002169/0.4071, allocations: 130.6 kB / 0.5291 GB, free: 5.777 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.566e-05/0.4072, allocations: 7.047 kB / 0.5291 GB, free: 5.773 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002271/0.4074, allocations: 14.77 kB / 0.5291 GB, free: 5.77 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.779e-05/0.4075, allocations: 21.95 kB / 0.5291 GB, free: 5.766 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.981e-05/0.4075, allocations: 5.406 kB / 0.5291 GB, free: 5.766 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004571/0.408, allocations: 303.1 kB / 0.5294 GB, free: 5.621 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.408, allocations: 0 / 0.5294 GB, free: 5.621 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006401/0.4086, allocations: 110.7 kB / 0.5295 GB, free: 5.609 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,dcm_par.motor.i,dcm_par.motor.i_f,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 (22): * Single equations (assignments): 20 * 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.002069/0.4107, allocations: 1.295 MB / 0.5308 GB, free: 4.691 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009376/0.4117, allocations: 402.6 kB / 0.5312 GB, free: 4.477 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.336e-06/0.4117, allocations: 3.938 kB / 0.5312 GB, free: 4.473 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004169/0.4121, allocations: 243.1 kB / 0.5314 GB, free: 4.316 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008139/0.4129, allocations: 142 kB / 0.5316 GB, free: 4.266 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006818/0.4198, allocations: 4.22 MB / 0.5357 GB, free: 1.543 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006628/0.4205, allocations: 0.8775 MB / 0.5365 GB, free: 0.8242 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003447/0.4208, allocations: 65.67 kB / 0.5366 GB, free: 0.8086 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002712/0.4211, allocations: 173.5 kB / 0.5368 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of SimCode: time 1.163e-06/0.4211, allocations: 0 / 0.5368 GB, free: 0.6797 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03879/0.4599, allocations: 11.69 MB / 0.5482 GB, free: 10.13 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.63, allocations: 4.062 kB / 0.5482 GB, free: 10.12 MB / 414.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)