Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.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_ser,fileNamePrefix="PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser,fileNamePrefix="PowerSystems_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/Complex 3.2.2+maint.om/package.mo): time 0.00129/0.00129, allocations: 180.1 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.351/1.351, allocations: 194.5 MB / 211.6 MB, free: 3.047 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.001677/0.001677, allocations: 118.9 kB / 256.9 MB, free: 4.371 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.0/package.mo): time 0.1641/0.1641, allocations: 38 MB / 340.1 MB, free: 1.352 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003623/0.0003623, allocations: 12 kB / 403.9 MB, free: 68.71 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09116/0.09153, allocations: 53.22 MB / 457.1 MB, free: 15.47 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3262/0.4178, allocations: 96.48 MB / 0.5406 GB, free: 14.7 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.001733/0.4196, allocations: 0.8712 MB / 0.5415 GB, free: 14.23 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.03845/0.458, allocations: 14.56 MB / 0.5557 GB, free: 1.859 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.487e-06/0.4581, allocations: 0 / 0.5557 GB, free: 1.859 MB / 362.7 MB Notification: Performance of Transformations before backend: time 0.0001026/0.4583, allocations: 11.94 kB / 0.5557 GB, free: 1.848 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: 90 * Number of variables: 90 Notification: Performance of Generate backend data structure: time 0.002303/0.4606, allocations: 0.8093 MB / 0.5565 GB, free: 1.016 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.971e-05/0.4606, allocations: 12.02 kB / 0.5565 GB, free: 1.004 MB / 362.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001923/0.4608, allocations: 71.34 kB / 0.5566 GB, free: 0.9453 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001662/0.461, allocations: 58.91 kB / 0.5566 GB, free: 0.8906 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00183/0.4628, allocations: 0.7147 MB / 0.5573 GB, free: 272 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.39e-05/0.4629, allocations: 27.44 kB / 0.5573 GB, free: 256 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.023e-05/0.463, allocations: 39.98 kB / 0.5574 GB, free: 228 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000771/0.4638, allocations: 457.2 kB / 0.5578 GB, free: 15.85 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.386e-05/0.4638, allocations: 4 kB / 0.5578 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.159e-05/0.4638, allocations: 19.38 kB / 0.5578 GB, free: 15.84 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.227e-05/0.4639, allocations: 8 kB / 0.5578 GB, free: 15.83 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004862/0.4644, allocations: 278.8 kB / 0.5581 GB, free: 15.64 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002627/0.467, allocations: 1.863 MB / 0.5599 GB, free: 13.94 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005334/0.4675, allocations: 243.2 kB / 0.5602 GB, free: 13.74 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.645e-05/0.4676, allocations: 12.19 kB / 0.5602 GB, free: 13.73 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000251/0.4679, allocations: 169.6 kB / 0.5603 GB, free: 13.57 MB / 378.7 MB Notification: Performance of pre-optimization done (n=24): time 2.355e-06/0.4679, allocations: 0 / 0.5603 GB, free: 13.57 MB / 378.7 MB Notification: Performance of matching and sorting (n=27): time 0.002244/0.4701, allocations: 1.148 MB / 0.5614 GB, free: 12.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.44e-05/0.4702, allocations: 136.5 kB / 0.5616 GB, free: 12.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004117/0.4706, allocations: 346 kB / 0.5619 GB, free: 12.09 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.825e-05/0.4707, allocations: 29.27 kB / 0.5619 GB, free: 12.06 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001698/0.4709, allocations: 257 kB / 0.5622 GB, free: 11.87 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.174e-05/0.471, allocations: 104.6 kB / 0.5623 GB, free: 11.78 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.573e-05/0.471, allocations: 7.062 kB / 0.5623 GB, free: 11.78 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001486/0.4711, allocations: 355.9 kB / 0.5626 GB, free: 11.44 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001874/0.4713, allocations: 94.05 kB / 0.5627 GB, free: 11.37 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002407/0.4716, allocations: 218.3 kB / 0.5629 GB, free: 11.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002215/0.4718, allocations: 142.8 kB / 0.5631 GB, free: 11.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.803e-06/0.4718, allocations: 4 kB / 0.5631 GB, free: 11.04 MB / 378.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008522/0.4727, allocations: 468.5 kB / 0.5635 GB, free: 10.66 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.07e-05/0.4727, allocations: 33.7 kB / 0.5635 GB, free: 10.62 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.071e-05/0.4727, allocations: 7.938 kB / 0.5636 GB, free: 10.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004278/0.4732, allocations: 96.41 kB / 0.5636 GB, free: 10.53 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002373/0.4734, allocations: 70.91 kB / 0.5637 GB, free: 10.46 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002218/0.4757, allocations: 1.829 MB / 0.5655 GB, free: 8.719 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003133/0.476, allocations: 27.36 kB / 0.5655 GB, free: 8.695 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.301e-05/0.476, allocations: 15.56 kB / 0.5655 GB, free: 8.684 MB / 378.7 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 (39): * Single equations (assignments): 37 * 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 {2 6} Notification: Performance of prepare postOptimizeDAE: time 0.0003055/0.4763, allocations: 200.7 kB / 0.5657 GB, free: 8.516 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.1e-05/0.4764, allocations: 39.53 kB / 0.5658 GB, free: 8.477 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000587/0.477, allocations: 307.3 kB / 0.5661 GB, free: 8.258 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.05e-05/0.477, allocations: 7.984 kB / 0.5661 GB, free: 8.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.759e-06/0.477, allocations: 4 kB / 0.5661 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.4771, allocations: 0 / 0.5661 GB, free: 8.246 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001167/0.4782, allocations: 0.7722 MB / 0.5668 GB, free: 7.586 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.637e-06/0.4782, allocations: 4 kB / 0.5668 GB, free: 7.582 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002494/0.4785, allocations: 51.17 kB / 0.5669 GB, free: 7.535 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002074/0.4787, allocations: 53.61 kB / 0.5669 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.337e-05/0.4788, allocations: 3 kB / 0.5669 GB, free: 7.488 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001257/0.48, allocations: 1.447 MB / 0.5683 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.157e-06/0.48, allocations: 0 / 0.5683 GB, free: 6.016 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007841/0.4808, allocations: 0.5188 MB / 0.5689 GB, free: 5.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001864/0.481, allocations: 133.8 kB / 0.569 GB, free: 5.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.08e-05/0.4811, allocations: 10.5 kB / 0.569 GB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000238/0.4813, allocations: 15.36 kB / 0.569 GB, free: 5.414 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.041e-05/0.4814, allocations: 27.28 kB / 0.569 GB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.334e-05/0.4815, allocations: 19.91 kB / 0.569 GB, free: 5.371 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0003681/0.4818, allocations: 271 kB / 0.5693 GB, free: 5.16 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.4818, allocations: 0 / 0.5693 GB, free: 5.16 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0006592/0.4825, allocations: 122.9 kB / 0.5694 GB, free: 5.055 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 4 (dcm_ser.motor.phi_el,dcm_ser.motor.w_el,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 (25): * Single equations (assignments): 23 * 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.002202/0.4847, allocations: 1.468 MB / 0.5709 GB, free: 3.691 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001014/0.4858, allocations: 459.9 kB / 0.5713 GB, free: 3.293 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.4858, allocations: 0 / 0.5713 GB, free: 3.293 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.00038/0.4862, allocations: 244.8 kB / 0.5715 GB, free: 3.074 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005959/0.4868, allocations: 107.8 kB / 0.5716 GB, free: 2.992 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003791/0.4906, allocations: 4.345 MB / 0.5759 GB, free: 14.64 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004646/0.4911, allocations: 0.8656 MB / 0.5767 GB, free: 13.77 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003473/0.4914, allocations: 67.25 kB / 0.5768 GB, free: 13.7 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.4917, allocations: 162.8 kB / 0.5769 GB, free: 13.65 MB / 394.7 MB Notification: Performance of SimCode: time 1.032e-06/0.4917, allocations: 0 / 0.5769 GB, free: 13.65 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02782/0.5195, allocations: 9.962 MB / 0.5867 GB, free: 3.668 MB / 394.7 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002652/0.5198, allocations: 242 kB / 0.5869 GB, free: 3.34 MB / 394.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.391/2.911, allocations: 0 / 0.5869 GB, free: 3.34 MB / 394.7 MB (rm -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; mkfifo PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe ; head -c 1048576 < PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe >> ../files/PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_ser.fmu > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_ser.pipe 2>&1)