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.001065/0.001065, allocations: 112.7 kB / 17.75 MB, free: 5.332 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.0009956/0.0009958, allocations: 183 kB / 18.68 MB, free: 4.41 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.334/1.334, allocations: 205.1 MB / 224.5 MB, free: 12.24 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/PowerSystems 1.0.1/package.mo): time 0.1757/0.1757, allocations: 37.99 MB / 309.9 MB, free: 5.953 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.001449/0.001449, allocations: 71.03 kB / 432.5 MB, free: 15.66 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0957/0.09716, allocations: 55.24 MB / 487.8 MB, free: 8.355 MB / 366.1 MB Notification: Performance of NFInst.instantiate(PowerSystems.Examples.AC1ph_DC.Drives.DCmotor_pm): time 0.00835/0.1056, allocations: 5.259 MB / 493 MB, free: 3.062 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.003193/0.1088, allocations: 1.617 MB / 494.7 MB, free: 1.438 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004087/0.1092, allocations: 19.88 kB / 494.7 MB, free: 1.418 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004511/0.1097, allocations: 123 kB / 494.8 MB, free: 1.297 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009264/0.1107, allocations: 318.1 kB / 495.1 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004376/0.1111, allocations: 163.7 kB / 495.3 MB, free: 0.8242 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001085/0.1122, allocations: 0.6966 MB / 496 MB, free: 128 kB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006352/0.1129, allocations: 443.7 kB / 496.4 MB, free: 15.69 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005176/0.1134, allocations: 290.8 kB / 496.7 MB, free: 15.4 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004942/0.1139, allocations: 279 kB / 497 MB, free: 15.13 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 9.533e-05/0.114, allocations: 52 kB / 497 MB, free: 15.08 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001213/0.1141, allocations: 44 kB / 497 MB, free: 15.04 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000168/0.1143, allocations: 159.5 kB / 497.2 MB, free: 14.88 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002939/0.1146, allocations: 266.7 kB / 497.5 MB, free: 14.62 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006735/0.1153, allocations: 0.5879 MB / 498.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.518e-06/0.1153, allocations: 0 / 498.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.1153, allocations: 0 / 498.1 MB, free: 14.03 MB / 382.1 MB Notification: Performance of Transformations before backend: time 2.268e-05/0.1154, allocations: 4 kB / 498.1 MB, free: 14.02 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.001628/0.117, allocations: 0.7815 MB / 498.8 MB, free: 13.2 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.157e-05/0.117, allocations: 23.81 kB / 498.9 MB, free: 13.17 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001175/0.1172, allocations: 52.28 kB / 498.9 MB, free: 13.12 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007691/0.1179, allocations: 448 kB / 499.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.867e-05/0.1181, allocations: 70.64 kB / 499.4 MB, free: 12.57 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.678e-05/0.1181, allocations: 44 kB / 499.5 MB, free: 12.52 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008467/0.119, allocations: 0.5086 MB / 500 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.735e-05/0.119, allocations: 3.906 kB / 500 MB, free: 11.98 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.527e-05/0.1191, allocations: 16 kB / 500 MB, free: 11.96 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.338e-05/0.1191, allocations: 12 kB / 0.4883 GB, free: 11.95 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000678/0.1198, allocations: 339.7 kB / 0.4886 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002485/0.1223, allocations: 1.972 MB / 0.4905 GB, free: 9.531 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004382/0.1227, allocations: 227.5 kB / 0.4908 GB, free: 9.281 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002084/0.123, allocations: 98.59 kB / 0.4908 GB, free: 9.176 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.176e-05/0.123, allocations: 7.938 kB / 0.4909 GB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.316e-05/0.123, allocations: 38.5 kB / 0.4909 GB, free: 9.121 MB / 382.1 MB Notification: Performance of pre-optimization done (n=20): time 1.743e-06/0.123, allocations: 0 / 0.4909 GB, free: 9.121 MB / 382.1 MB Notification: Performance of matching and sorting (n=22): time 0.001791/0.1248, allocations: 0.8432 MB / 0.4917 GB, free: 8.219 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.182e-05/0.1249, allocations: 102.8 kB / 0.4918 GB, free: 8.094 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003699/0.1253, allocations: 341.8 kB / 0.4921 GB, free: 7.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.436e-05/0.1253, allocations: 29.7 kB / 0.4922 GB, free: 7.711 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000196/0.1255, allocations: 267.7 kB / 0.4924 GB, free: 7.445 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.341e-05/0.1256, allocations: 74.91 kB / 0.4925 GB, free: 7.371 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001074/0.1257, allocations: 69.59 kB / 0.4926 GB, free: 7.297 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001476/0.1259, allocations: 342.8 kB / 0.4929 GB, free: 6.953 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002212/0.1261, allocations: 83.94 kB / 0.493 GB, free: 6.871 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000291/0.1264, allocations: 232.6 kB / 0.4932 GB, free: 6.582 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001243/0.1277, allocations: 0.5447 MB / 0.4937 GB, free: 5.957 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.85e-06/0.1277, allocations: 0 / 0.4937 GB, free: 5.957 MB / 382.1 MB Notification: Performance of matching and sorting (n=42) (initialization): time 0.0008575/0.1285, allocations: 413.5 kB / 0.4941 GB, free: 5.543 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.86e-05/0.1286, allocations: 11.94 kB / 0.4941 GB, free: 5.531 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.908e-06/0.1286, allocations: 4.531 kB / 0.4941 GB, free: 5.527 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003307/0.1289, allocations: 80.8 kB / 0.4942 GB, free: 5.445 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000245/0.1292, allocations: 63.91 kB / 0.4943 GB, free: 5.383 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002014/0.1312, allocations: 1.932 MB / 0.4962 GB, free: 3.312 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002194/0.1314, allocations: 23.83 kB / 0.4962 GB, free: 3.289 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.492e-05/0.1315, allocations: 20.06 kB / 0.4962 GB, free: 3.27 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.0002086/0.1317, allocations: 193.7 kB / 0.4964 GB, free: 3.07 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.374e-05/0.1318, allocations: 31.62 kB / 0.4964 GB, free: 3.039 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.768e-05/0.1319, allocations: 43.19 kB / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.1319, allocations: 0 / 0.4965 GB, free: 3 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.1319, allocations: 4 kB / 0.4965 GB, free: 2.996 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001196/0.132, allocations: 120.7 kB / 0.4966 GB, free: 2.859 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.982e-05/0.132, allocations: 8.062 kB / 0.4966 GB, free: 2.852 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002078/0.1323, allocations: 15.98 kB / 0.4966 GB, free: 2.836 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.5e-05/0.1323, allocations: 11.98 kB / 0.4966 GB, free: 2.824 MB / 382.1 MB Notification: Performance of postOpt createDAEmodeBDAE (simulation): time 0.0008111/0.1331, allocations: 0.4883 MB / 0.4971 GB, free: 2.324 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobianDAE (simulation): time 0.0007493/0.1339, allocations: 0.6336 MB / 0.4977 GB, free: 1.672 MB / 382.1 MB Notification: Performance of postOpt setEvaluationStage (simulation): time 0.0001892/0.1341, allocations: 87.95 kB / 0.4978 GB, free: 1.586 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0002323/0.1343, allocations: 231.2 kB / 0.498 GB, free: 1.363 MB / 382.1 MB Notification: Performance of Backend: time 3.4e-07/0.1344, allocations: 3.938 kB / 0.498 GB, free: 1.359 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.001079/0.1354, allocations: 377.1 kB / 0.4984 GB, free: 0.9727 MB / 382.1 MB Notification: Performance of SimCode: time 0.001841/0.1373, allocations: 1.438 MB / 0.4998 GB, free: 15.48 MB / 398.1 MB Notification: Performance of Templates: time 0.01003/0.1473, allocations: 4.803 MB / 0.5045 GB, free: 10.67 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)