Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo", uses=false) Using package PowerSystems with version 1.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_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/Complex 3.2.2+maint.om/package.mo): time 0.001975/0.001975, allocations: 180.3 kB / 8.353 MB, free: 0.7227 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.852/1.852, allocations: 194.4 MB / 203.1 MB, free: 12.96 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.001651/0.00165, allocations: 124 kB / 248.1 MB, free: 15.96 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1653/0.1653, allocations: 37.93 MB / 330.9 MB, free: 2.637 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.054e-05/2.049e-05, allocations: 4 kB / 390.5 MB, free: 6.988 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2756/0.2756, allocations: 53.22 MB / 443.7 MB, free: 17.67 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1307/0.4063, allocations: 96.23 MB / 0.5273 GB, free: 1.305 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001871/0.4082, allocations: 0.5815 MB / 0.5278 GB, free: 0.7227 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3045/0.7128, allocations: 15.93 MB / 0.5434 GB, free: 86.05 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.483e-06/0.7129, allocations: 0 / 0.5434 GB, free: 86.05 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.093e-05/0.7129, allocations: 12 kB / 0.5434 GB, free: 86.04 MB / 378.7 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.001473/0.7144, allocations: 0.8024 MB / 0.5442 GB, free: 85.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.7145, allocations: 8.031 kB / 0.5442 GB, free: 85.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001432/0.7146, allocations: 71.25 kB / 0.5443 GB, free: 85.11 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001774/0.7164, allocations: 0.7481 MB / 0.545 GB, free: 84.33 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.7165, allocations: 12 kB / 0.545 GB, free: 84.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.596e-05/0.7166, allocations: 28 kB / 0.545 GB, free: 84.29 MB / 378.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006174/0.7172, allocations: 290.5 kB / 0.5453 GB, free: 84.01 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008724/0.7181, allocations: 460.6 kB / 0.5457 GB, free: 83.51 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.356e-05/0.7181, allocations: 0 / 0.5457 GB, free: 83.51 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.452e-05/0.7182, allocations: 4 kB / 0.5457 GB, free: 83.51 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.461e-05/0.7182, allocations: 11.98 kB / 0.5458 GB, free: 83.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002803/0.721, allocations: 1.992 MB / 0.5477 GB, free: 81.41 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004668/0.7215, allocations: 219.8 kB / 0.5479 GB, free: 81.17 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001417/0.7217, allocations: 66.64 kB / 0.548 GB, free: 81.1 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.537e-05/0.7217, allocations: 8 kB / 0.548 GB, free: 81.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002957/0.722, allocations: 171.2 kB / 0.5481 GB, free: 80.91 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 3.447e-06/0.722, allocations: 0 / 0.5481 GB, free: 80.91 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.002078/0.7241, allocations: 1.014 MB / 0.5491 GB, free: 79.8 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.036e-05/0.7242, allocations: 136.3 kB / 0.5493 GB, free: 79.64 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004686/0.7247, allocations: 329.2 kB / 0.5496 GB, free: 79.31 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.561e-05/0.7247, allocations: 25.7 kB / 0.5496 GB, free: 79.28 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001799/0.7249, allocations: 291.5 kB / 0.5499 GB, free: 78.99 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.237e-05/0.725, allocations: 90.66 kB / 0.55 GB, free: 78.9 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.035e-05/0.725, allocations: 0 / 0.55 GB, free: 78.9 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001076/0.7251, allocations: 354.7 kB / 0.5503 GB, free: 78.54 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001854/0.7253, allocations: 76.88 kB / 0.5504 GB, free: 78.47 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002483/0.7256, allocations: 212.6 kB / 0.5506 GB, free: 78.2 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002436/0.7259, allocations: 111.9 kB / 0.5507 GB, free: 78.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.7259, allocations: 4 kB / 0.5507 GB, free: 78.09 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.001031/0.7269, allocations: 402.7 kB / 0.5511 GB, free: 77.69 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/0.727, allocations: 33.7 kB / 0.5511 GB, free: 77.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.17e-05/0.727, allocations: 4 kB / 0.5511 GB, free: 77.64 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005282/0.7275, allocations: 88.78 kB / 0.5512 GB, free: 77.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003857/0.7279, allocations: 80.12 kB / 0.5513 GB, free: 77.48 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002026/0.73, allocations: 1.619 MB / 0.5529 GB, free: 75.75 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004156/0.7304, allocations: 15.91 kB / 0.5529 GB, free: 75.73 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.019e-05/0.7305, allocations: 19.98 kB / 0.5529 GB, free: 75.71 MB / 378.7 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (42): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 7} Notification: Performance of prepare postOptimizeDAE: time 0.0001189/0.7306, allocations: 116.9 kB / 0.553 GB, free: 75.59 MB / 378.7 MB Notification: Performance of postOpt createAliasVarsForOutputStates (simulation): time 0.0006276/0.7312, allocations: 253.9 kB / 0.5532 GB, free: 75.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.887e-05/0.7313, allocations: 43.47 kB / 0.5533 GB, free: 75.29 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006912/0.732, allocations: 261.9 kB / 0.5535 GB, free: 75.03 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.732, allocations: 4 kB / 0.5535 GB, free: 75.02 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.7321, allocations: 7.984 kB / 0.5535 GB, free: 75.02 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.011e-06/0.7321, allocations: 0 / 0.5535 GB, free: 75.02 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001278/0.7334, allocations: 0.7098 MB / 0.5542 GB, free: 74.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.248e-06/0.7334, allocations: 0 / 0.5542 GB, free: 74.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003435/0.7337, allocations: 43.98 kB / 0.5543 GB, free: 74.22 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002293/0.734, allocations: 52.8 kB / 0.5543 GB, free: 74.17 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.52e-05/0.734, allocations: 0 / 0.5543 GB, free: 74.17 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001049/0.7351, allocations: 1.393 MB / 0.5557 GB, free: 72.66 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.7351, allocations: 0 / 0.5557 GB, free: 72.66 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007122/0.7358, allocations: 480.8 kB / 0.5561 GB, free: 72.15 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001387/0.736, allocations: 140.5 kB / 0.5563 GB, free: 71.99 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.185e-05/0.736, allocations: 0 / 0.5563 GB, free: 71.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002798/0.7363, allocations: 15.98 kB / 0.5563 GB, free: 71.98 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.957e-05/0.7364, allocations: 19.97 kB / 0.5563 GB, free: 71.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.516e-05/0.7365, allocations: 11.98 kB / 0.5563 GB, free: 71.95 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003/0.7368, allocations: 243 kB / 0.5566 GB, free: 71.71 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.31e-07/0.7368, allocations: 0 / 0.5566 GB, free: 71.71 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000766/0.7376, allocations: 112 kB / 0.5567 GB, free: 71.6 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.motor.phi_el,dcm_par.motor.w_el,dcm_par.motor.i,dcm_par.motor.i_f,tabLoad.s) * Number of discrete variables: 2 ($whenCondition1,system.initime) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (23): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001708/0.7393, allocations: 1.369 MB / 0.558 GB, free: 70.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000839/0.7401, allocations: 408.8 kB / 0.5584 GB, free: 69.79 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.998e-06/0.7402, allocations: 4 kB / 0.5584 GB, free: 69.79 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004038/0.7406, allocations: 230.7 kB / 0.5586 GB, free: 69.55 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007433/0.7413, allocations: 93.75 kB / 0.5587 GB, free: 69.46 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002287/0.7436, allocations: 0.9982 MB / 0.5597 GB, free: 68.42 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003494/0.744, allocations: 0.8893 MB / 0.5606 GB, free: 67.5 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0003399/0.7444, allocations: 63.3 kB / 0.5606 GB, free: 67.44 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000264/0.7446, allocations: 167.4 kB / 0.5608 GB, free: 67.27 MB / 378.7 MB Notification: Performance of SimCode: time 6.01e-07/0.7446, allocations: 0 / 0.5608 GB, free: 67.27 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03975/0.7844, allocations: 9.101 MB / 0.5697 GB, free: 58.16 MB / 378.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002175/0.7847, allocations: 169 kB / 0.5698 GB, free: 57.96 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.205/2.99, allocations: 8.031 kB / 0.5698 GB, free: 57.96 MB / 378.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)