Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.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_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm",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.001089/0.001089, allocations: 179.5 kB / 16.38 MB, free: 5.766 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.361/1.361, allocations: 194.5 MB / 211.6 MB, free: 2.961 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.001633/0.001633, allocations: 120 kB / 256.9 MB, free: 4.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1624/0.1624, allocations: 38 MB / 340.1 MB, free: 1.324 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003373/0.0003373, allocations: 15.98 kB / 403.9 MB, free: 68.69 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09036/0.09071, allocations: 53.22 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2887/0.3794, allocations: 95.09 MB / 0.5393 GB, free: 36 kB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000216/0.3797, allocations: 90.45 kB / 0.5393 GB, free: 15.99 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03039/0.4101, allocations: 12.99 MB / 0.552 GB, free: 4.941 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.4101, allocations: 0 / 0.552 GB, free: 4.941 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.296e-05/0.4101, allocations: 8 kB / 0.552 GB, free: 4.934 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001072/0.4112, allocations: 0.7326 MB / 0.5527 GB, free: 4.184 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.4113, allocations: 16.02 kB / 0.5528 GB, free: 4.168 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.69e-05/0.4114, allocations: 78.53 kB / 0.5528 GB, free: 4.105 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.837e-05/0.4115, allocations: 51.34 kB / 0.5529 GB, free: 4.055 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001219/0.4127, allocations: 0.6856 MB / 0.5536 GB, free: 3.441 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.216e-05/0.4128, allocations: 69.5 kB / 0.5536 GB, free: 3.383 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.841e-05/0.4129, allocations: 42.5 kB / 0.5537 GB, free: 3.355 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006863/0.4136, allocations: 0.4981 MB / 0.5541 GB, free: 2.949 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.004e-05/0.4136, allocations: 11.27 kB / 0.5542 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.519e-05/0.4136, allocations: 14.75 kB / 0.5542 GB, free: 2.938 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.015e-05/0.4136, allocations: 8 kB / 0.5542 GB, free: 2.93 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005726/0.4142, allocations: 348.8 kB / 0.5545 GB, free: 2.691 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002166/0.4164, allocations: 1.992 MB / 0.5565 GB, free: 0.8867 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003892/0.4168, allocations: 224 kB / 0.5567 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.826e-05/0.4168, allocations: 0 / 0.5567 GB, free: 0.6914 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.54e-05/0.4169, allocations: 45.88 kB / 0.5567 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of pre-optimization done (n=20): time 1.051e-06/0.4169, allocations: 0 / 0.5567 GB, free: 0.6406 MB / 362.7 MB Notification: Performance of matching and sorting (n=23): time 0.001826/0.4187, allocations: 1.085 MB / 0.5578 GB, free: 15.62 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.651e-05/0.4188, allocations: 103 kB / 0.5579 GB, free: 15.5 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002639/0.419, allocations: 304.7 kB / 0.5582 GB, free: 15.25 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.152e-05/0.4191, allocations: 32.45 kB / 0.5582 GB, free: 15.21 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001349/0.4192, allocations: 266.9 kB / 0.5584 GB, free: 15 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.35e-05/0.4193, allocations: 78.66 kB / 0.5585 GB, free: 14.93 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.471e-05/0.4193, allocations: 5.25 kB / 0.5585 GB, free: 14.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001119/0.4194, allocations: 346.4 kB / 0.5589 GB, free: 14.6 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001992/0.4196, allocations: 88.89 kB / 0.5589 GB, free: 14.54 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002615/0.4199, allocations: 220.7 kB / 0.5592 GB, free: 14.3 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007302/0.4206, allocations: 312.8 kB / 0.5595 GB, free: 14.03 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.4206, allocations: 0 / 0.5595 GB, free: 14.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=43) (initialization): time 0.0008389/0.4215, allocations: 438.6 kB / 0.5599 GB, free: 13.68 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.334e-05/0.4215, allocations: 4 kB / 0.5599 GB, free: 13.67 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.466e-06/0.4215, allocations: 11.94 kB / 0.5599 GB, free: 13.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003025/0.4218, allocations: 89.16 kB / 0.56 GB, free: 13.58 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002393/0.4221, allocations: 70.09 kB / 0.56 GB, free: 13.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03158/0.4537, allocations: 1.806 MB / 0.5618 GB, free: 11.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002571/0.4539, allocations: 18.44 kB / 0.5618 GB, free: 11.78 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.06e-05/0.454, allocations: 23.44 kB / 0.5618 GB, free: 11.76 MB / 378.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: $DER.dcm_pm.rotor.w = 0.0. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 1 (system.initime) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (35): * Single equations (assignments): 34 * Array equations: 0 * Algorithm blocks: 0 * 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 8} Notification: Performance of prepare postOptimizeDAE: time 0.0002481/0.4542, allocations: 196.2 kB / 0.562 GB, free: 11.59 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.771e-05/0.4543, allocations: 39.47 kB / 0.5621 GB, free: 11.55 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.915e-05/0.4544, allocations: 42.86 kB / 0.5621 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.089e-06/0.4544, allocations: 3.953 kB / 0.5621 GB, free: 11.53 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.354e-06/0.4545, allocations: 4 kB / 0.5621 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.4545, allocations: 0 / 0.5621 GB, free: 11.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0012/0.4557, allocations: 0.79 MB / 0.5629 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.817e-06/0.4557, allocations: 4 kB / 0.5629 GB, free: 10.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002601/0.456, allocations: 55.59 kB / 0.5629 GB, free: 10.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.045e-05/0.456, allocations: 24.22 kB / 0.563 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.973e-05/0.4561, allocations: 7.562 kB / 0.563 GB, free: 10.74 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000827/0.4569, allocations: 1.285 MB / 0.5642 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.353e-06/0.4569, allocations: 0 / 0.5642 GB, free: 9.371 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007473/0.4577, allocations: 0.5361 MB / 0.5647 GB, free: 8.887 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001402/0.4578, allocations: 131.3 kB / 0.5649 GB, free: 8.75 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.547e-05/0.4579, allocations: 7.5 kB / 0.5649 GB, free: 8.746 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002013/0.4581, allocations: 4 kB / 0.5649 GB, free: 8.742 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.745e-05/0.4582, allocations: 19.47 kB / 0.5649 GB, free: 8.727 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.529e-05/0.4582, allocations: 7.312 kB / 0.5649 GB, free: 8.723 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002159/0.4584, allocations: 226.8 kB / 0.5651 GB, free: 8.543 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.4584, allocations: 0 / 0.5651 GB, free: 8.543 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000516/0.4589, allocations: 94.56 kB / 0.5652 GB, free: 8.461 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (dcm_pm.motor.phi_el,dcm_pm.motor.w_el,dcm_pm.motor.i) * Number of discrete variables: 1 (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 (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%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001206/0.4601, allocations: 1.238 MB / 0.5664 GB, free: 7.273 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.000798/0.461, allocations: 402 kB / 0.5668 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.461, allocations: 0 / 0.5668 GB, free: 6.934 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003528/0.4613, allocations: 226.6 kB / 0.567 GB, free: 6.727 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005212/0.4619, allocations: 88.88 kB / 0.5671 GB, free: 6.656 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005251/0.4671, allocations: 5.35 MB / 0.5723 GB, free: 1.477 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005125/0.4677, allocations: 0.8577 MB / 0.5732 GB, free: 0.6094 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0002179/0.4679, allocations: 47.27 kB / 0.5732 GB, free: 0.5586 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001683/0.4681, allocations: 138.1 kB / 0.5733 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4681, allocations: 0 / 0.5733 GB, free: 0.5195 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02297/0.491, allocations: 8.225 MB / 0.5814 GB, free: 8.316 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002144/0.4913, allocations: 212 kB / 0.5816 GB, free: 8.07 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.058/2.549, allocations: 3.938 kB / 0.5816 GB, free: 8.066 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_pm.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)