Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr PowerSystems_latest_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 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo", uses=false) Using package PowerSystems with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par,fileNamePrefix="PowerSystems_latest_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.001084/0.001084, allocations: 90.7 kB / 16.65 MB, free: 6.59 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.001024/0.001024, allocations: 182.8 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.205/1.205, allocations: 223.2 MB / 241.6 MB, free: 136 kB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 2.0.0-master/package.mo): time 0.1615/0.1615, allocations: 38.09 MB / 330.8 MB, free: 8.762 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003223/0.0003223, allocations: 8 kB / 400.8 MB, free: 34.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08317/0.0835, allocations: 59.17 MB / 460 MB, free: 6.984 MB / 334.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par): time 0.005773/0.08931, allocations: 5.901 MB / 465.9 MB, free: 1.051 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003024/0.09235, allocations: 2.283 MB / 468.2 MB, free: 14.76 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003488/0.09272, allocations: 27.81 kB / 468.2 MB, free: 14.73 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004425/0.09318, allocations: 147.2 kB / 468.3 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008037/0.09399, allocations: 378.1 kB / 468.7 MB, free: 14.22 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005002/0.0945, allocations: 222.8 kB / 468.9 MB, free: 14 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001105/0.09562, allocations: 1.075 MB / 470 MB, free: 12.93 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004907/0.09612, allocations: 394.8 kB / 470.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004466/0.09658, allocations: 282.7 kB / 470.7 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004514/0.09704, allocations: 326.6 kB / 471 MB, free: 11.94 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.143e-05/0.09711, allocations: 28 kB / 471 MB, free: 11.91 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001872/0.0973, allocations: 75.97 kB / 471.1 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001514/0.09746, allocations: 147.5 kB / 471.2 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002595/0.09773, allocations: 300.2 kB / 471.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006093/0.09835, allocations: 0.685 MB / 472.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.09837, allocations: 4 kB / 472.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.162e-06/0.09837, allocations: 0 / 472.2 MB, free: 10.7 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.673e-06/0.09839, allocations: 0 / 472.2 MB, free: 10.7 MB / 350.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.001282/0.09967, allocations: 0.8007 MB / 473 MB, free: 9.852 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.393e-05/0.09971, allocations: 8.031 kB / 473 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001006/0.09982, allocations: 86.7 kB / 473.1 MB, free: 9.75 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.105e-05/0.09992, allocations: 64.12 kB / 473.2 MB, free: 9.688 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006816/0.1006, allocations: 0.5016 MB / 473.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.238e-05/0.1007, allocations: 36.98 kB / 473.7 MB, free: 9.105 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.863e-05/0.1008, allocations: 44 kB / 473.7 MB, free: 9.062 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007083/0.1015, allocations: 0.5173 MB / 474.3 MB, free: 8.504 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.873e-05/0.1015, allocations: 3.984 kB / 474.3 MB, free: 8.5 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.218e-05/0.1015, allocations: 20 kB / 474.3 MB, free: 8.48 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.756e-05/0.1016, allocations: 17 kB / 474.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000504/0.1021, allocations: 331.6 kB / 474.6 MB, free: 8.141 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002253/0.1044, allocations: 2.085 MB / 476.7 MB, free: 5.938 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003793/0.1048, allocations: 235.7 kB / 476.9 MB, free: 5.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001296/0.1049, allocations: 78.55 kB / 477 MB, free: 5.594 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.251e-05/0.105, allocations: 4 kB / 477 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00023/0.1052, allocations: 165.8 kB / 477.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of pre-optimization done (n=23): time 1.403e-06/0.1052, allocations: 0 / 477.2 MB, free: 5.406 MB / 350.1 MB Notification: Performance of matching and sorting (n=25): time 0.001506/0.1067, allocations: 0.9133 MB / 478.1 MB, free: 4.438 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.483e-05/0.1068, allocations: 136.5 kB / 478.2 MB, free: 4.273 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004504/0.1073, allocations: 438 kB / 478.7 MB, free: 3.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.526e-05/0.1073, allocations: 29.7 kB / 478.7 MB, free: 3.801 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000181/0.1075, allocations: 291.7 kB / 479 MB, free: 3.512 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.549e-05/0.1075, allocations: 94.66 kB / 479.1 MB, free: 3.418 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.08e-05/0.1076, allocations: 41.69 kB / 479.1 MB, free: 3.371 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001258/0.1077, allocations: 350.7 kB / 479.4 MB, free: 3.02 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001486/0.1079, allocations: 88.77 kB / 479.5 MB, free: 2.934 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002239/0.1081, allocations: 221.8 kB / 479.7 MB, free: 2.656 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003875/0.1085, allocations: 329.7 kB / 480.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.794e-06/0.1085, allocations: 0 / 480.1 MB, free: 2.277 MB / 350.1 MB Notification: Performance of matching and sorting (n=47) (initialization): time 0.0007844/0.1093, allocations: 441.7 kB / 480.5 MB, free: 1.836 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.495e-05/0.1093, allocations: 6.188 kB / 480.5 MB, free: 1.832 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.304e-06/0.1094, allocations: 8 kB / 480.5 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003763/0.1097, allocations: 92.7 kB / 480.6 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002435/0.11, allocations: 76.12 kB / 480.7 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001752/0.1118, allocations: 1.699 MB / 482.4 MB, free: 15.82 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002456/0.112, allocations: 27.98 kB / 482.4 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.263e-05/0.112, allocations: 12 kB / 482.4 MB, free: 15.78 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of prepare postOptimizeDAE: time 0.0002067/0.1123, allocations: 217.7 kB / 482.6 MB, free: 15.56 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.361e-05/0.1123, allocations: 47.42 kB / 482.7 MB, free: 15.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005237/0.1128, allocations: 288.1 kB / 483 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.226e-06/0.1129, allocations: 0 / 483 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-06/0.1129, allocations: 4 kB / 483 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.1129, allocations: 3.984 kB / 483 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.1139, allocations: 0.7717 MB / 483.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.234e-06/0.1139, allocations: 3.938 kB / 483.7 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002482/0.1142, allocations: 47.97 kB / 483.8 MB, free: 14.33 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001858/0.1144, allocations: 52.75 kB / 483.8 MB, free: 14.28 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.009e-05/0.1144, allocations: 11.92 kB / 483.9 MB, free: 14.27 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001107/0.1155, allocations: 1.425 MB / 485.3 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.45e-06/0.1155, allocations: 11.97 kB / 485.3 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006468/0.1162, allocations: 486 kB / 485.8 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001238/0.1163, allocations: 136.6 kB / 485.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.626e-05/0.1164, allocations: 7.984 kB / 485.9 MB, free: 12.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.1166, allocations: 16.14 kB / 485.9 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.774e-05/0.1166, allocations: 27.89 kB / 485.9 MB, free: 12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.582e-05/0.1167, allocations: 7.984 kB / 486 MB, free: 11.99 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002936/0.117, allocations: 295.1 kB / 486.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.117, allocations: 4 kB / 486.2 MB, free: 11.7 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0004361/0.1174, allocations: 116 kB / 486.4 MB, free: 11.58 MB / 366.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 (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.001621/0.119, allocations: 1.301 MB / 487.7 MB, free: 10.39 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0006505/0.1197, allocations: 390.8 kB / 488 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.108e-06/0.1197, allocations: 4 kB / 488 MB, free: 9.996 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003314/0.1201, allocations: 238.5 kB / 488.3 MB, free: 9.75 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006954/0.1208, allocations: 126.6 kB / 488.4 MB, free: 9.629 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005275/0.1261, allocations: 4.596 MB / 493 MB, free: 4.824 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004084/0.1265, allocations: 0.874 MB / 493.9 MB, free: 3.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002256/0.1267, allocations: 68.17 kB / 493.9 MB, free: 3.855 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002125/0.1269, allocations: 175.4 kB / 494.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of SimCode: time 3.6e-07/0.1269, allocations: 0 / 494.1 MB, free: 3.684 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6853/0.8122, allocations: 10.55 MB / 0.4928 GB, free: 9.379 MB / 382.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002078/0.8124, allocations: 295.5 kB / 0.4931 GB, free: 8.988 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.273/3.085, allocations: 0 / 0.4931 GB, free: 8.988 MB / 382.1 MB (rm -f PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; mkfifo PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe ; head -c 1048576 < PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe >> ../files/PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par_res.mat --tempDir=temp_PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par_fmu --startTime=0 --stopTime=60 --timeout=50 --tolerance=1e-06 PowerSystems_latest_PowerSystems_Examples_AC1ph_DC_Drives_DCmotor_par.fmu > PowerSystems_latest_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_par.pipe 2>&1)