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.001763/0.001763, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.002069/0.002069, allocations: 200 kB / 18.01 MB, free: 5.066 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.445/1.445, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1809/0.1809, allocations: 38.05 MB / 329.9 MB, free: 8.727 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002098/0.002098, allocations: 59.91 kB / 457.6 MB, free: 7.348 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3174/0.3195, allocations: 58.07 MB / 0.5036 GB, free: 7.48 MB / 382.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.00621/0.3258, allocations: 5.701 MB / 0.5092 GB, free: 3.531 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.003221/0.329, allocations: 2.11 MB / 0.5112 GB, free: 2.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000535/0.3296, allocations: 24.06 kB / 0.5113 GB, free: 2.027 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006829/0.3303, allocations: 172.7 kB / 0.5114 GB, free: 1.93 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001275/0.3316, allocations: 420.3 kB / 0.5118 GB, free: 1.684 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007495/0.3324, allocations: 248.8 kB / 0.5121 GB, free: 1.551 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001355/0.3338, allocations: 0.8361 MB / 0.5129 GB, free: 1.16 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007129/0.3345, allocations: 0.4995 MB / 0.5134 GB, free: 0.9531 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006501/0.3351, allocations: 354.8 kB / 0.5137 GB, free: 0.7812 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006624/0.3358, allocations: 343.8 kB / 0.514 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001453/0.336, allocations: 53.41 kB / 0.5141 GB, free: 0.6289 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003789/0.3364, allocations: 96.97 kB / 0.5142 GB, free: 0.6172 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000237/0.3366, allocations: 187.5 kB / 0.5144 GB, free: 0.5234 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004728/0.3371, allocations: 302.5 kB / 0.5147 GB, free: 348 kB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001095/0.3382, allocations: 0.7369 MB / 0.5154 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.3382, allocations: 2.047 kB / 0.5154 GB, free: 44 kB / 382.1 MB Notification: Performance of FrontEnd: time 1.533e-06/0.3382, allocations: 4 kB / 0.5154 GB, free: 40 kB / 382.1 MB Notification: Performance of Transformations before backend: time 1.704e-05/0.3382, allocations: 0 / 0.5154 GB, free: 40 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.001933/0.3402, allocations: 0.913 MB / 0.5163 GB, free: 15.36 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.096e-05/0.3402, allocations: 13.55 kB / 0.5163 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001226/0.3404, allocations: 79.16 kB / 0.5164 GB, free: 15.29 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001571/0.3405, allocations: 67.41 kB / 0.5164 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001048/0.3416, allocations: 0.5284 MB / 0.5169 GB, free: 14.88 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.122e-05/0.3416, allocations: 35.27 kB / 0.517 GB, free: 14.87 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001318/0.3418, allocations: 48.91 kB / 0.517 GB, free: 14.85 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001013/0.3428, allocations: 0.5175 MB / 0.5175 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.184e-05/0.3428, allocations: 1.438 kB / 0.5175 GB, free: 14.57 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.448e-05/0.3429, allocations: 17.12 kB / 0.5175 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.219e-05/0.343, allocations: 21 kB / 0.5176 GB, free: 14.55 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007459/0.3437, allocations: 340.1 kB / 0.5179 GB, free: 14.43 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00304/0.3468, allocations: 2.06 MB / 0.5199 GB, free: 12.87 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000471/0.3473, allocations: 230.4 kB / 0.5201 GB, free: 12.73 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001505/0.3474, allocations: 83.47 kB / 0.5202 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.979e-05/0.3475, allocations: 7.219 kB / 0.5202 GB, free: 12.68 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002882/0.3478, allocations: 163.9 kB / 0.5204 GB, free: 12.57 MB / 398.1 MB Notification: Performance of pre-optimization done (n=23): time 2.013e-06/0.3478, allocations: 3.938 kB / 0.5204 GB, free: 12.57 MB / 398.1 MB Notification: Performance of matching and sorting (n=25): time 0.002005/0.3498, allocations: 0.9466 MB / 0.5213 GB, free: 11.92 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.544e-05/0.3499, allocations: 131.7 kB / 0.5214 GB, free: 11.77 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005873/0.3505, allocations: 428.2 kB / 0.5218 GB, free: 11.55 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.084e-05/0.3505, allocations: 32.05 kB / 0.5219 GB, free: 11.52 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002641/0.3508, allocations: 300.9 kB / 0.5221 GB, free: 11.28 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001003/0.3509, allocations: 96.02 kB / 0.5222 GB, free: 11.2 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001287/0.3511, allocations: 80.17 kB / 0.5223 GB, free: 11.15 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001823/0.3512, allocations: 355 kB / 0.5226 GB, free: 10.82 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001923/0.3514, allocations: 88.33 kB / 0.5227 GB, free: 10.79 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002961/0.3518, allocations: 223.1 kB / 0.5229 GB, free: 10.59 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004878/0.3522, allocations: 321.8 kB / 0.5233 GB, free: 10.33 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.145e-06/0.3523, allocations: 6.125 kB / 0.5233 GB, free: 10.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0009605/0.3532, allocations: 442 kB / 0.5237 GB, free: 10.13 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.864e-05/0.3533, allocations: 10.2 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.397e-06/0.3533, allocations: 5.5 kB / 0.5237 GB, free: 10.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004146/0.3537, allocations: 89.14 kB / 0.5238 GB, free: 10.11 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000259/0.354, allocations: 76.12 kB / 0.5239 GB, free: 10.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002298/0.3563, allocations: 1.834 MB / 0.5256 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003514/0.3567, allocations: 22.25 kB / 0.5257 GB, free: 8.473 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.782e-05/0.3567, allocations: 13.39 kB / 0.5257 GB, free: 8.473 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.0003376/0.357, allocations: 205.3 kB / 0.5259 GB, free: 8.309 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.829e-05/0.3571, allocations: 49.72 kB / 0.5259 GB, free: 8.281 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006262/0.3578, allocations: 291.3 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.62e-06/0.3578, allocations: 2.406 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.3578, allocations: 1.406 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.3578, allocations: 2.859 kB / 0.5262 GB, free: 8.137 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001398/0.3592, allocations: 0.7768 MB / 0.527 GB, free: 7.641 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.181e-06/0.3592, allocations: 7.938 kB / 0.527 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002663/0.3595, allocations: 42.38 kB / 0.527 GB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002259/0.3598, allocations: 53.25 kB / 0.5271 GB, free: 7.613 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.854e-05/0.3598, allocations: 7.641 kB / 0.5271 GB, free: 7.609 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001521/0.3613, allocations: 1.546 MB / 0.5286 GB, free: 6.125 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.855e-06/0.3613, allocations: 5.969 kB / 0.5286 GB, free: 6.121 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008209/0.3622, allocations: 480.8 kB / 0.529 GB, free: 5.828 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002061/0.3624, allocations: 143.1 kB / 0.5292 GB, free: 5.691 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.164e-05/0.3625, allocations: 8.328 kB / 0.5292 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002425/0.3627, allocations: 8.922 kB / 0.5292 GB, free: 5.688 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.686e-05/0.3628, allocations: 26.45 kB / 0.5292 GB, free: 5.68 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.244e-05/0.3628, allocations: 9.984 kB / 0.5292 GB, free: 5.676 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004214/0.3633, allocations: 294.3 kB / 0.5295 GB, free: 5.539 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3633, allocations: 0 / 0.5295 GB, free: 5.539 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006122/0.3639, allocations: 116.5 kB / 0.5296 GB, free: 5.523 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.002423/0.3663, allocations: 1.287 MB / 0.5309 GB, free: 4.609 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0009152/0.3673, allocations: 399.1 kB / 0.5313 GB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.3673, allocations: 0 / 0.5313 GB, free: 4.395 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004177/0.3677, allocations: 250 kB / 0.5315 GB, free: 4.23 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008721/0.3686, allocations: 141.5 kB / 0.5316 GB, free: 4.18 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006846/0.3754, allocations: 4.234 MB / 0.5358 GB, free: 1.449 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006196/0.3761, allocations: 0.8826 MB / 0.5366 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0003397/0.3765, allocations: 68.53 kB / 0.5367 GB, free: 0.707 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002847/0.3768, allocations: 170.3 kB / 0.5369 GB, free: 0.582 MB / 398.1 MB Notification: Performance of SimCode: time 8.01e-07/0.3768, allocations: 0 / 0.5369 GB, free: 0.582 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04858/0.4253, allocations: 11.51 MB / 0.5481 GB, free: 10.2 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.86/13.28, allocations: 4 kB / 0.5481 GB, free: 10.19 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)