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/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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo", uses=false) Using package PowerSystems with version 1.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001397/0.001397, allocations: 92.53 kB / 16.3 MB, free: 5.539 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.001526/0.001526, allocations: 187.4 kB / 17.2 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.332/1.332, allocations: 205.4 MB / 223.3 MB, free: 13.18 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1752/0.1752, allocations: 38.04 MB / 309.7 MB, free: 6.133 MB / 254.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0005481/0.0005482, allocations: 15.98 kB / 376.6 MB, free: 3.109 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2591/0.2597, allocations: 56.32 MB / 432.9 MB, free: 18.83 MB / 318.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005376/0.2651, allocations: 5.375 MB / 438.3 MB, free: 13.43 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.003054/0.2682, allocations: 2.133 MB / 440.4 MB, free: 11.29 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004831/0.2687, allocations: 27.81 kB / 440.4 MB, free: 11.27 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004696/0.2692, allocations: 155.1 kB / 440.6 MB, free: 11.11 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007998/0.27, allocations: 366.8 kB / 440.9 MB, free: 10.75 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005359/0.2706, allocations: 210.5 kB / 441.2 MB, free: 10.55 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006947/0.2713, allocations: 491 kB / 441.6 MB, free: 10.07 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003925/0.2717, allocations: 366.2 kB / 442 MB, free: 9.711 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003255/0.272, allocations: 263 kB / 442.2 MB, free: 9.453 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000284/0.2723, allocations: 239 kB / 442.5 MB, free: 9.219 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.736e-05/0.2724, allocations: 28 kB / 442.5 MB, free: 9.191 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001725/0.2725, allocations: 63.97 kB / 442.6 MB, free: 9.129 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2727, allocations: 139.6 kB / 442.7 MB, free: 8.992 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.094e-05/0.2728, allocations: 129.5 kB / 442.8 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004158/0.2732, allocations: 0.561 MB / 443.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.2732, allocations: 0 / 443.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.2732, allocations: 0 / 443.4 MB, free: 8.297 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.446e-06/0.2732, allocations: 3.938 kB / 443.4 MB, free: 8.293 MB / 318.1 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.001276/0.2745, allocations: 0.8005 MB / 444.2 MB, free: 7.441 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.821e-05/0.2746, allocations: 11.98 kB / 444.2 MB, free: 7.43 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.565e-05/0.2746, allocations: 82.53 kB / 444.3 MB, free: 7.34 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.531e-05/0.2747, allocations: 63.19 kB / 444.4 MB, free: 7.277 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007131/0.2755, allocations: 489.7 kB / 444.8 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.16e-05/0.2755, allocations: 37 kB / 444.9 MB, free: 6.719 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.425e-05/0.2756, allocations: 47.94 kB / 444.9 MB, free: 6.672 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006432/0.2763, allocations: 0.5212 MB / 445.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.892e-05/0.2763, allocations: 0 / 445.4 MB, free: 6.109 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.122e-05/0.2763, allocations: 16 kB / 445.5 MB, free: 6.094 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-05/0.2764, allocations: 17 kB / 445.5 MB, free: 6.078 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004506/0.2769, allocations: 335.7 kB / 445.8 MB, free: 5.75 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00215/0.279, allocations: 2.07 MB / 447.9 MB, free: 3.562 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003608/0.2794, allocations: 236.2 kB / 448.1 MB, free: 3.305 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.127e-05/0.2794, allocations: 8.016 kB / 448.1 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002258/0.2797, allocations: 174 kB / 448.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of pre-optimization done (n=23): time 1.743e-06/0.2797, allocations: 0 / 448.3 MB, free: 3.105 MB / 318.1 MB Notification: Performance of matching and sorting (n=25): time 0.001376/0.2811, allocations: 0.9132 MB / 449.2 MB, free: 2.133 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.269e-05/0.2811, allocations: 132.8 kB / 449.3 MB, free: 1.973 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003807/0.2815, allocations: 425.8 kB / 449.7 MB, free: 1.551 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 2.092e-05/0.2816, allocations: 33.7 kB / 449.8 MB, free: 1.512 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.2817, allocations: 295.7 kB / 450.1 MB, free: 1.219 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.169e-05/0.2818, allocations: 94.64 kB / 450.1 MB, free: 1.125 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.432e-05/0.2818, allocations: 8 kB / 450.2 MB, free: 1.117 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.099e-05/0.2819, allocations: 354.8 kB / 450.5 MB, free: 0.7617 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000127/0.282, allocations: 80.83 kB / 450.6 MB, free: 0.6797 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001716/0.2822, allocations: 221.5 kB / 450.8 MB, free: 416 kB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001652/0.2823, allocations: 119.9 kB / 450.9 MB, free: 296 kB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.744e-06/0.2823, allocations: 0 / 450.9 MB, free: 296 kB / 318.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007532/0.2831, allocations: 437.8 kB / 451.3 MB, free: 15.85 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.431e-05/0.2832, allocations: 8 kB / 451.3 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.083e-05/0.2832, allocations: 4 kB / 451.4 MB, free: 15.84 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003991/0.2836, allocations: 96.92 kB / 451.4 MB, free: 15.74 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002441/0.2838, allocations: 71.91 kB / 451.5 MB, free: 15.67 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001948/0.2858, allocations: 1.722 MB / 453.2 MB, free: 13.81 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000268/0.2861, allocations: 19.98 kB / 453.3 MB, free: 13.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.874e-05/0.2861, allocations: 20 kB / 453.3 MB, free: 13.77 MB / 334.1 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 (40): * Single equations (assignments): 39 * 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 7} Notification: Performance of prepare postOptimizeDAE: time 0.0002539/0.2864, allocations: 214.2 kB / 453.5 MB, free: 13.55 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.845e-05/0.2864, allocations: 47.44 kB / 453.5 MB, free: 13.5 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005405/0.287, allocations: 274.1 kB / 453.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.741e-06/0.287, allocations: 4 kB / 453.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.989e-06/0.287, allocations: 3.953 kB / 453.8 MB, free: 13.22 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.975e-06/0.287, allocations: 7.984 kB / 453.8 MB, free: 13.21 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00112/0.2882, allocations: 0.7842 MB / 454.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2882, allocations: 0 / 454.6 MB, free: 12.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002517/0.2884, allocations: 43.92 kB / 454.6 MB, free: 12.32 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001911/0.2886, allocations: 48.8 kB / 454.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.979e-05/0.2887, allocations: 8 kB / 454.7 MB, free: 12.27 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00119/0.2899, allocations: 1.452 MB / 456.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.2899, allocations: 64 / 456.2 MB, free: 10.68 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006611/0.2905, allocations: 0.4888 MB / 456.6 MB, free: 10.15 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001404/0.2907, allocations: 136.6 kB / 456.8 MB, free: 10 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.386e-05/0.2908, allocations: 15.95 kB / 456.8 MB, free: 9.984 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002138/0.291, allocations: 15.98 kB / 456.8 MB, free: 9.969 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.774e-05/0.2911, allocations: 15.97 kB / 456.8 MB, free: 9.953 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.015e-05/0.2911, allocations: 12 kB / 456.8 MB, free: 9.941 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004073/0.2915, allocations: 295.1 kB / 457.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.2915, allocations: 0 / 457.1 MB, free: 9.652 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0005159/0.292, allocations: 112 kB / 457.2 MB, free: 9.543 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 5 (dcm_par.rotor.phi,dcm_par.rotor.w,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 (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%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001787/0.2938, allocations: 1.463 MB / 458.7 MB, free: 8.102 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006965/0.2945, allocations: 379.3 kB / 459.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.405e-06/0.2946, allocations: 1.125 kB / 459.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003352/0.2949, allocations: 246.5 kB / 459.3 MB, free: 7.465 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005725/0.2955, allocations: 129.7 kB / 459.4 MB, free: 7.34 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005238/0.3007, allocations: 5.785 MB / 465.2 MB, free: 1.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004335/0.3012, allocations: 0.8857 MB / 466.1 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0002447/0.3014, allocations: 72.22 kB / 466.2 MB, free: 444 kB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002267/0.3017, allocations: 183.4 kB / 466.4 MB, free: 260 kB / 334.1 MB Notification: Performance of SimCode: time 4.71e-07/0.3017, allocations: 0 / 466.4 MB, free: 260 kB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02596/0.3276, allocations: 10.43 MB / 476.8 MB, free: 5.801 MB / 350.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001869/0.3279, allocations: 248.8 kB / 477 MB, free: 5.469 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.924/2.252, allocations: 4 kB / 477 MB, free: 5.465 MB / 350.1 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) Environment - environmentSimulation: