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.001762/0.001762, allocations: 112.8 kB / 17.06 MB, free: 5.973 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.001866/0.001866, allocations: 200 kB / 18.01 MB, free: 5.047 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.448/1.448, allocations: 222.9 MB / 241.7 MB, free: 15.1 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1801/0.1801, allocations: 38.04 MB / 329.9 MB, free: 8.742 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001849/0.001849, allocations: 59.91 kB / 457.6 MB, free: 7.367 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3009/0.3028, allocations: 58.07 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.005576/0.3084, allocations: 5.165 MB / 0.5087 GB, free: 3.879 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.002441/0.3108, allocations: 1.978 MB / 0.5106 GB, free: 2.48 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002519/0.3111, allocations: 15.22 kB / 0.5106 GB, free: 2.477 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004739/0.3116, allocations: 154.1 kB / 0.5108 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007686/0.3124, allocations: 353.3 kB / 0.5111 GB, free: 2.18 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004885/0.3129, allocations: 225.8 kB / 0.5113 GB, free: 2.055 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007923/0.3137, allocations: 0.6927 MB / 0.512 GB, free: 1.727 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004676/0.3142, allocations: 447.3 kB / 0.5124 GB, free: 1.539 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003746/0.3146, allocations: 293.5 kB / 0.5127 GB, free: 1.398 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000406/0.315, allocations: 281.5 kB / 0.513 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 7.494e-05/0.3151, allocations: 46.81 kB / 0.513 GB, free: 1.273 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002071/0.3153, allocations: 95.23 kB / 0.5131 GB, free: 1.258 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001486/0.3154, allocations: 152.9 kB / 0.5132 GB, free: 1.176 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002427/0.3157, allocations: 270.9 kB / 0.5135 GB, free: 1.008 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007567/0.3165, allocations: 0.6467 MB / 0.5141 GB, free: 0.7461 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.768e-06/0.3165, allocations: 4 kB / 0.5141 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3165, allocations: 1.281 kB / 0.5141 GB, free: 0.7422 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.836e-06/0.3165, allocations: 0 / 0.5141 GB, free: 0.7422 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.001326/0.3178, allocations: 0.8648 MB / 0.515 GB, free: 92 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.108e-05/0.3179, allocations: 13.39 kB / 0.515 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.738e-05/0.318, allocations: 72.36 kB / 0.5151 GB, free: 28 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.029e-05/0.318, allocations: 55.42 kB / 0.5151 GB, free: 0 / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008195/0.3189, allocations: 494.2 kB / 0.5156 GB, free: 15.65 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.148e-05/0.3189, allocations: 27.78 kB / 0.5156 GB, free: 15.64 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.765e-05/0.319, allocations: 37.45 kB / 0.5157 GB, free: 15.62 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007375/0.3197, allocations: 458.3 kB / 0.5161 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.191e-05/0.3198, allocations: 10.39 kB / 0.5161 GB, free: 15.36 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.311e-05/0.3198, allocations: 15.78 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.007e-05/0.3198, allocations: 9.594 kB / 0.5161 GB, free: 15.35 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004636/0.3203, allocations: 277.8 kB / 0.5164 GB, free: 15.25 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002411/0.3227, allocations: 1.86 MB / 0.5182 GB, free: 13.8 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005728/0.3233, allocations: 240.5 kB / 0.5184 GB, free: 13.66 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001691/0.3235, allocations: 87.45 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.594e-05/0.3235, allocations: 6.531 kB / 0.5185 GB, free: 13.61 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003089/0.3239, allocations: 178.6 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=24): time 1.833e-06/0.3239, allocations: 0.7812 kB / 0.5187 GB, free: 13.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=26): time 0.001787/0.3257, allocations: 0.9235 MB / 0.5196 GB, free: 12.87 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.985e-05/0.3258, allocations: 137.5 kB / 0.5197 GB, free: 12.71 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005068/0.3263, allocations: 408.1 kB / 0.5201 GB, free: 12.5 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.038e-05/0.3263, allocations: 31.92 kB / 0.5201 GB, free: 12.47 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002124/0.3265, allocations: 268.2 kB / 0.5204 GB, free: 12.25 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.912e-05/0.3266, allocations: 95.7 kB / 0.5205 GB, free: 12.17 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001164/0.3268, allocations: 71.36 kB / 0.5206 GB, free: 12.13 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3269, allocations: 358.2 kB / 0.5209 GB, free: 11.79 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001581/0.3271, allocations: 82.73 kB / 0.521 GB, free: 11.77 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002488/0.3274, allocations: 215.6 kB / 0.5212 GB, free: 11.57 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004483/0.3278, allocations: 313.6 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.835e-06/0.3278, allocations: 5.281 kB / 0.5215 GB, free: 11.32 MB / 398.1 MB Notification: Performance of matching and sorting (n=44) (initialization): time 0.0008466/0.3287, allocations: 431 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.817e-05/0.3287, allocations: 7.812 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.238e-06/0.3287, allocations: 3.031 kB / 0.5219 GB, free: 11.12 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004408/0.3292, allocations: 97.88 kB / 0.522 GB, free: 11.1 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000225/0.3294, allocations: 62.84 kB / 0.5221 GB, free: 11.09 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002527/0.3319, allocations: 2.015 MB / 0.524 GB, free: 9.328 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002975/0.3323, allocations: 20.34 kB / 0.5241 GB, free: 9.324 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.822e-05/0.3323, allocations: 21.55 kB / 0.5241 GB, free: 9.316 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.0002757/0.3326, allocations: 190.3 kB / 0.5243 GB, free: 9.16 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.508e-05/0.3327, allocations: 43.38 kB / 0.5243 GB, free: 9.137 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006498/0.3333, allocations: 303.1 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.56e-06/0.3333, allocations: 5.422 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/0.3333, allocations: 1.062 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.793e-06/0.3334, allocations: 2.844 kB / 0.5246 GB, free: 8.988 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001182/0.3345, allocations: 0.7742 MB / 0.5254 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.927e-06/0.3346, allocations: 1.375 kB / 0.5254 GB, free: 8.48 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002283/0.3348, allocations: 44.12 kB / 0.5254 GB, free: 8.477 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002117/0.335, allocations: 48.97 kB / 0.5254 GB, free: 8.461 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.594e-05/0.3351, allocations: 7.688 kB / 0.5255 GB, free: 8.457 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001531/0.3366, allocations: 1.546 MB / 0.527 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.893e-06/0.3366, allocations: 1.375 kB / 0.527 GB, free: 6.969 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008429/0.3375, allocations: 0.494 MB / 0.5274 GB, free: 6.668 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001694/0.3376, allocations: 132.8 kB / 0.5276 GB, free: 6.543 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.401e-05/0.3377, allocations: 9.281 kB / 0.5276 GB, free: 6.535 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000235/0.3379, allocations: 18.88 kB / 0.5276 GB, free: 6.527 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.913e-05/0.338, allocations: 27.11 kB / 0.5276 GB, free: 6.52 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.454e-05/0.3381, allocations: 13.72 kB / 0.5276 GB, free: 6.512 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003803/0.3384, allocations: 286.8 kB / 0.5279 GB, free: 6.367 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.3385, allocations: 1.406 kB / 0.5279 GB, free: 6.367 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0006387/0.3391, allocations: 102.5 kB / 0.528 GB, free: 6.355 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.002496/0.3416, allocations: 1.319 MB / 0.5293 GB, free: 5.43 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.001016/0.3426, allocations: 412.2 kB / 0.5297 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 3.387e-06/0.3426, allocations: 0 / 0.5297 GB, free: 5.215 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004243/0.3431, allocations: 247.3 kB / 0.5299 GB, free: 5.059 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008021/0.3439, allocations: 126.5 kB / 0.53 GB, free: 5.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006169/0.3501, allocations: 4.06 MB / 0.534 GB, free: 2.375 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005724/0.3507, allocations: 0.8562 MB / 0.5348 GB, free: 1.66 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0002836/0.351, allocations: 62.52 kB / 0.5349 GB, free: 1.641 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3512, allocations: 163.1 kB / 0.5351 GB, free: 1.52 MB / 398.1 MB Notification: Performance of SimCode: time 6.21e-07/0.3512, allocations: 4 kB / 0.5351 GB, free: 1.516 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04068/0.3919, allocations: 10.95 MB / 0.5458 GB, free: 12.51 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13/13.4, allocations: 5.25 kB / 0.5458 GB, free: 12.51 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)