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.001401/0.001401, allocations: 179.2 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.375/1.375, allocations: 194.5 MB / 211.6 MB, free: 3.039 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.001571/0.001571, allocations: 114.5 kB / 256.9 MB, free: 4.348 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.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003292, allocations: 8 kB / 403.9 MB, free: 68.7 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1009, allocations: 53.24 MB / 457.1 MB, free: 15.45 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3281/0.429, allocations: 96.98 MB / 0.5411 GB, free: 14.22 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001727/0.4308, allocations: 0.8626 MB / 0.5419 GB, free: 13.76 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04269/0.4735, allocations: 16.13 MB / 0.5577 GB, free: 12 kB / 362.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.4736, allocations: 4 kB / 0.5577 GB, free: 8 kB / 362.7 MB Notification: Performance of Transformations before backend: time 5.829e-05/0.4736, allocations: 16.08 kB / 0.5577 GB, free: 15.99 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.001566/0.4752, allocations: 0.8508 MB / 0.5586 GB, free: 15.12 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.421e-05/0.4752, allocations: 16 kB / 0.5586 GB, free: 15.11 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001309/0.4754, allocations: 91.97 kB / 0.5587 GB, free: 15.04 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001248/0.4755, allocations: 63.25 kB / 0.5587 GB, free: 14.97 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001592/0.4771, allocations: 0.7585 MB / 0.5595 GB, free: 14.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.5e-05/0.4772, allocations: 34.62 kB / 0.5595 GB, free: 14.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.042e-05/0.4773, allocations: 54.98 kB / 0.5595 GB, free: 14.26 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008138/0.4781, allocations: 0.5143 MB / 0.56 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.047e-05/0.4781, allocations: 0 / 0.56 GB, free: 13.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.909e-05/0.4782, allocations: 25.42 kB / 0.5601 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.046e-05/0.4782, allocations: 8 kB / 0.5601 GB, free: 13.82 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005427/0.4787, allocations: 329.5 kB / 0.5604 GB, free: 13.61 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002355/0.4811, allocations: 2.081 MB / 0.5624 GB, free: 11.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003759/0.4815, allocations: 236.9 kB / 0.5626 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.275e-05/0.4815, allocations: 352 / 0.5626 GB, free: 11.54 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002345/0.4818, allocations: 170.5 kB / 0.5628 GB, free: 11.38 MB / 378.7 MB Notification: Performance of pre-optimization done (n=23): time 1.503e-06/0.4818, allocations: 0 / 0.5628 GB, free: 11.38 MB / 378.7 MB Notification: Performance of matching and sorting (n=26): time 0.001798/0.4836, allocations: 1.146 MB / 0.5639 GB, free: 10.33 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.199e-05/0.4837, allocations: 128.8 kB / 0.5641 GB, free: 10.17 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003704/0.484, allocations: 376.3 kB / 0.5644 GB, free: 9.879 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.778e-05/0.4841, allocations: 33.64 kB / 0.5644 GB, free: 9.844 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001519/0.4842, allocations: 295.8 kB / 0.5647 GB, free: 9.625 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.249e-05/0.4843, allocations: 89.91 kB / 0.5648 GB, free: 9.547 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.574e-05/0.4843, allocations: 11.81 kB / 0.5648 GB, free: 9.543 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001225/0.4845, allocations: 354.2 kB / 0.5652 GB, free: 9.203 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001503/0.4846, allocations: 87.53 kB / 0.5652 GB, free: 9.148 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002243/0.4848, allocations: 231.7 kB / 0.5655 GB, free: 8.906 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002227/0.4851, allocations: 148.7 kB / 0.5656 GB, free: 8.801 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.4851, allocations: 0 / 0.5656 GB, free: 8.801 MB / 378.7 MB Notification: Performance of matching and sorting (n=49) (initialization): time 0.0008104/0.4859, allocations: 487.8 kB / 0.5661 GB, free: 8.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.535e-05/0.486, allocations: 37.58 kB / 0.5661 GB, free: 8.367 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.486, allocations: 4 kB / 0.5661 GB, free: 8.363 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004154/0.4864, allocations: 96.2 kB / 0.5662 GB, free: 8.277 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002485/0.4867, allocations: 80.05 kB / 0.5663 GB, free: 8.203 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00177/0.4884, allocations: 1.709 MB / 0.5679 GB, free: 6.57 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002726/0.4887, allocations: 31.23 kB / 0.568 GB, free: 6.547 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.777e-05/0.4888, allocations: 12 kB / 0.568 GB, free: 6.535 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 () * Number of clocked 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.0002643/0.489, allocations: 213.6 kB / 0.5682 GB, free: 6.359 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.656e-05/0.4891, allocations: 43.44 kB / 0.5682 GB, free: 6.316 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005366/0.4896, allocations: 290.5 kB / 0.5685 GB, free: 6.105 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.679e-06/0.4897, allocations: 4 kB / 0.5685 GB, free: 6.102 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.869e-06/0.4897, allocations: 4 kB / 0.5685 GB, free: 6.098 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.991e-06/0.4897, allocations: 3.953 kB / 0.5685 GB, free: 6.094 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001117/0.4908, allocations: 0.7823 MB / 0.5693 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4908, allocations: 4 kB / 0.5693 GB, free: 5.422 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002731/0.4911, allocations: 51.91 kB / 0.5693 GB, free: 5.371 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002006/0.4913, allocations: 46.81 kB / 0.5694 GB, free: 5.332 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.426e-05/0.4913, allocations: 7.188 kB / 0.5694 GB, free: 5.328 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001131/0.4925, allocations: 1.442 MB / 0.5708 GB, free: 3.859 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.695e-06/0.4925, allocations: 4.031 kB / 0.5708 GB, free: 3.855 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006766/0.4932, allocations: 0.5026 MB / 0.5713 GB, free: 3.418 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001435/0.4933, allocations: 132.4 kB / 0.5714 GB, free: 3.281 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.137e-05/0.4934, allocations: 15.27 kB / 0.5714 GB, free: 3.27 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002197/0.4936, allocations: 19.48 kB / 0.5715 GB, free: 3.254 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.249e-05/0.4937, allocations: 18.97 kB / 0.5715 GB, free: 3.238 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.935e-05/0.4937, allocations: 14.94 kB / 0.5715 GB, free: 3.227 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002845/0.494, allocations: 287.1 kB / 0.5718 GB, free: 3.004 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.494, allocations: 0 / 0.5718 GB, free: 3.004 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005168/0.4945, allocations: 129.6 kB / 0.5719 GB, free: 2.891 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 () * Number of clocked 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.001645/0.4962, allocations: 1.433 MB / 0.5733 GB, free: 1.555 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0007388/0.4969, allocations: 449.9 kB / 0.5737 GB, free: 1.164 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.497, allocations: 5.062 kB / 0.5737 GB, free: 1.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003519/0.4973, allocations: 243.9 kB / 0.5739 GB, free: 0.9414 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005432/0.4979, allocations: 113.2 kB / 0.5741 GB, free: 0.8594 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003355/0.5012, allocations: 4.651 MB / 0.5786 GB, free: 12.21 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004248/0.5017, allocations: 0.8843 MB / 0.5795 GB, free: 11.31 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0002703/0.502, allocations: 72.16 kB / 0.5795 GB, free: 11.24 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001919/0.5022, allocations: 175.9 kB / 0.5797 GB, free: 11.18 MB / 394.7 MB Notification: Performance of SimCode: time 3.51e-07/0.5022, allocations: 0 / 0.5797 GB, free: 11.18 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2132/0.7154, allocations: 10.52 MB / 0.59 GB, free: 0.6367 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002585/0.7157, allocations: 249.3 kB / 0.5902 GB, free: 308 kB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.19/2.906, allocations: 0 / 0.5902 GB, free: 308 kB / 394.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)