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/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: translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") translateModel(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001072/0.001072, allocations: 103.1 kB / 17.06 MB, free: 6.129 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.001217/0.001217, allocations: 195 kB / 18 MB, free: 5.203 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.228/1.228, allocations: 205.1 MB / 223.9 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1694/0.1694, allocations: 37.98 MB / 309.2 MB, free: 5.961 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.001304/0.001304, allocations: 67.91 kB / 431.9 MB, free: 15.78 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08884/0.09015, allocations: 55.24 MB / 487.1 MB, free: 8.473 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.006005/0.0962, allocations: 5.266 MB / 492.4 MB, free: 3.172 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.002146/0.09839, allocations: 1.613 MB / 494 MB, free: 1.551 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002723/0.09868, allocations: 19.88 kB / 494 MB, free: 1.531 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003983/0.09909, allocations: 123 kB / 494.1 MB, free: 1.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007434/0.09987, allocations: 326.1 kB / 494.4 MB, free: 1.09 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003759/0.1003, allocations: 151.8 kB / 494.6 MB, free: 0.9414 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007732/0.101, allocations: 0.6927 MB / 495.3 MB, free: 252 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005038/0.1016, allocations: 447.7 kB / 495.7 MB, free: 15.8 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003236/0.1019, allocations: 290.9 kB / 496 MB, free: 15.52 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003488/0.1023, allocations: 286.9 kB / 496.3 MB, free: 15.24 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.736e-05/0.1023, allocations: 44 kB / 496.3 MB, free: 15.2 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.7e-05/0.1024, allocations: 48 kB / 496.4 MB, free: 15.15 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001427/0.1026, allocations: 163.5 kB / 496.5 MB, free: 14.99 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000229/0.1028, allocations: 262.8 kB / 496.8 MB, free: 14.73 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005354/0.1034, allocations: 0.5957 MB / 497.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.97e-06/0.1034, allocations: 0 / 497.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.212e-06/0.1034, allocations: 0 / 497.4 MB, free: 14.13 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.298e-06/0.1034, allocations: 0 / 497.4 MB, free: 14.13 MB / 382.1 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.001288/0.1047, allocations: 0.7854 MB / 498.2 MB, free: 13.3 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1047, allocations: 11.89 kB / 498.2 MB, free: 13.29 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.895e-05/0.1048, allocations: 56.28 kB / 498.2 MB, free: 13.23 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006268/0.1055, allocations: 452 kB / 498.7 MB, free: 12.75 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.617e-05/0.1056, allocations: 70.58 kB / 498.7 MB, free: 12.68 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.768e-05/0.1056, allocations: 40 kB / 498.8 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007313/0.1064, allocations: 0.5009 MB / 499.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.942e-05/0.1064, allocations: 3.906 kB / 499.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.985e-05/0.1065, allocations: 24 kB / 499.3 MB, free: 12.07 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.678e-06/0.1065, allocations: 12 kB / 499.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005791/0.1071, allocations: 343.7 kB / 499.7 MB, free: 11.73 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.1091, allocations: 1.964 MB / 0.4899 GB, free: 9.648 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004004/0.1095, allocations: 224 kB / 0.4901 GB, free: 9.402 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001813/0.1097, allocations: 102.6 kB / 0.4902 GB, free: 9.293 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.86e-05/0.1097, allocations: 3.938 kB / 0.4902 GB, free: 9.289 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.947e-05/0.1098, allocations: 42.5 kB / 0.4902 GB, free: 9.238 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.553e-06/0.1098, allocations: 3.938 kB / 0.4902 GB, free: 9.234 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.001517/0.1113, allocations: 0.8349 MB / 0.491 GB, free: 8.34 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.98e-05/0.1114, allocations: 110.8 kB / 0.4911 GB, free: 8.207 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002948/0.1117, allocations: 337.5 kB / 0.4915 GB, free: 7.863 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.218e-05/0.1117, allocations: 29.7 kB / 0.4915 GB, free: 7.828 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001496/0.1119, allocations: 271.9 kB / 0.4918 GB, free: 7.559 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.471e-05/0.1119, allocations: 78.89 kB / 0.4918 GB, free: 7.48 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.718e-05/0.112, allocations: 69.61 kB / 0.4919 GB, free: 7.406 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001136/0.1121, allocations: 342.8 kB / 0.4922 GB, free: 7.062 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001851/0.1123, allocations: 87.95 kB / 0.4923 GB, free: 6.977 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002443/0.1126, allocations: 220.7 kB / 0.4925 GB, free: 6.699 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001067/0.1137, allocations: 0.5564 MB / 0.4931 GB, free: 6.062 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.697e-06/0.1137, allocations: 4 kB / 0.4931 GB, free: 6.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0007816/0.1145, allocations: 409.8 kB / 0.4935 GB, free: 5.648 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.59e-05/0.1145, allocations: 8 kB / 0.4935 GB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.885e-06/0.1145, allocations: 4 kB / 0.4935 GB, free: 5.637 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002948/0.1148, allocations: 77.08 kB / 0.4935 GB, free: 5.559 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002294/0.115, allocations: 67.84 kB / 0.4936 GB, free: 5.492 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001778/0.1168, allocations: 1.924 MB / 0.4955 GB, free: 3.43 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001984/0.117, allocations: 31.83 kB / 0.4955 GB, free: 3.398 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.08e-05/0.1171, allocations: 12 kB / 0.4955 GB, free: 3.387 MB / 382.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: $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 (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.0001923/0.1173, allocations: 193.8 kB / 0.4957 GB, free: 3.188 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.804e-05/0.1173, allocations: 31.62 kB / 0.4957 GB, free: 3.156 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.877e-05/0.1174, allocations: 47.25 kB / 0.4958 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.044e-06/0.1174, allocations: 0 / 0.4958 GB, free: 3.113 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.606e-06/0.1174, allocations: 4 kB / 0.4958 GB, free: 3.109 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.541e-06/0.1174, allocations: 3.984 kB / 0.4958 GB, free: 3.105 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001092/0.1185, allocations: 0.7803 MB / 0.4966 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.665e-06/0.1186, allocations: 0 / 0.4966 GB, free: 2.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002453/0.1188, allocations: 51.97 kB / 0.4966 GB, free: 2.199 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.591e-05/0.1189, allocations: 24.84 kB / 0.4966 GB, free: 2.172 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.708e-05/0.1189, allocations: 4 kB / 0.4966 GB, free: 2.168 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008211/0.1197, allocations: 1.379 MB / 0.498 GB, free: 0.6523 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.1198, allocations: 8 kB / 0.498 GB, free: 0.6445 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006742/0.1204, allocations: 0.5085 MB / 0.4985 GB, free: 112 kB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001112/0.1206, allocations: 116.8 kB / 0.4986 GB, free: 15.98 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.415e-05/0.1206, allocations: 4 kB / 0.4986 GB, free: 15.97 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001923/0.1208, allocations: 11.98 kB / 0.4986 GB, free: 15.96 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.742e-05/0.1209, allocations: 16.08 kB / 0.4986 GB, free: 15.95 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.586e-05/0.1209, allocations: 7.984 kB / 0.4986 GB, free: 15.94 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0002043/0.1211, allocations: 235.2 kB / 0.4989 GB, free: 15.71 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1211, allocations: 0 / 0.4989 GB, free: 15.71 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0004702/0.1216, allocations: 84 kB / 0.4989 GB, free: 15.63 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 3 (dcm_pm.motor.i,loadInertia.w,frictTorq.phi) * 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 (21): * Single equations (assignments): 19 * 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,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001008/0.1217, allocations: 111.1 kB / 0.499 GB, free: 15.51 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0006789/0.1224, allocations: 371.1 kB / 0.4994 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1224, allocations: 0 / 0.4994 GB, free: 15.14 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003224/0.1227, allocations: 218.6 kB / 0.4996 GB, free: 14.91 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006304/0.1234, allocations: 102.4 kB / 0.4997 GB, free: 14.81 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001406/0.1248, allocations: 0.9167 MB / 0.5006 GB, free: 13.86 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003604/0.1252, allocations: 0.8465 MB / 0.5014 GB, free: 12.98 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001583/0.1253, allocations: 51.25 kB / 0.5015 GB, free: 12.93 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.584e-05/0.1254, allocations: 31.44 kB / 0.5015 GB, free: 12.9 MB / 398.1 MB Notification: Performance of SimCode: time 3.31e-07/0.1254, allocations: 0 / 0.5015 GB, free: 12.9 MB / 398.1 MB Notification: Performance of Templates: time 0.008576/0.134, allocations: 4.675 MB / 0.5061 GB, free: 8.223 MB / 398.1 MB make -j1 -f PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.makefile (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 & ./PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm -abortSlowSimulation -alarm=480 -lv LOG_STATS > PowerSystems_PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm.pipe 2>&1)